the questioning - noun verb
it is a noun verb because it has a determiner.
the answer is wisest because of the words "of all". wise is only used if the sentence is solomon is wise. wiser is only used if there is another one or another king specifically to be compared with solomon.