A query is a question, not an inquiry. As a verb, query means "to question." An inquiry is a series of queries or questions, an extended investigation: "The inquiry by the coroner lasted for several hours." Question is a general term, whereas a query is usually confined to a specific, definite, and limited matter: "The clerk has a query about this particular charge." "After a lengthy sequence of queries (or questions), the judge ended his inquiry by releasing the accused man on bail."
Dictionary of problem words and expressions. Harry Shaw. 1975.