"Query" as a noun is a question. "I have a query." = "I have a question."
To query as a verb simply means to pose a question.
You rarely hear anyone use this word.
Inquiry is only a noun. It is a process of seeking out information. It can be used to indicate you are simply asking a question but usually indicates a more complex process.
To inquire is the verb form and means to ask a question.