A query is a"a question that you ask because you want information or because you are not certain about something [Macmillan]."
Oxford defines a query more specifically than a question; a question is
a sentence worded or expressed so as to elicit information
while a query is
a question, especially one expressing doubt or requesting information [emphasis mine]