Query (database) A request for information to be retrieved from a database. Alternately, a data structure in which such a request is encoded. (general) A query is also a general term used when you want to interrogate a setting or an exported instance variable for its current value.