In general, a query is a form of questioning, in a line of inquiry.
In computing, a database query is often specified using the structured query language SQL.