Query language

Computer language used to make queries into databases and information systems


title: "Query language" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["query-languages", "computer-languages", "data-management", "programming-language-classification", "database-management-systems"] description: "Computer language used to make queries into databases and information systems" topic_path: "technology/databases" source: "https://en.wikipedia.org/wiki/Query_language" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Computer language used to make queries into databases and information systems ::

A query language, also known as data query language or database query language (DQL), is a computer language used to make queries in databases and information systems. In database systems, query languages rely on strict theory to retrieve information. A well known example is the Structured Query Language (SQL).

Types

Broadly, query languages can be classified according to whether they are database query languages or information retrieval query languages. The difference is that a database query language attempts to give factual answers to factual questions, while an information retrieval query language attempts to find documents containing information that is relevant to an area of inquiry. Other types of query languages include:

  • Full-text. The simplest query language is treating all terms as bag of words that are to be matched with the postings in the inverted index and where subsequently ranking models are applied to retrieve the most relevant documents. Only tokens are defined in the CFG. Web search engines often use this approach.
  • Boolean. A query language that also supports the use of the Boolean operators AND, OR, NOT.
  • Structured. A language that supports searching within (a combination of) fields when a document is structured and has been indexed using its document structure.
  • Natural language. A query language that supports natural language by parsing the natural language query to a form that can be best used to retrieve relevant documents, for example with Question answering systems or conversational search.

Examples

References

References

  1. Schmitt, Ingo. (January 2008). "QQL: A DB&IR Query Language". The VDLB Journal 17.
  2. (2006). "Attempto Controlled English Meets the Challenges of Knowledge Representation, Reasoning, Interoperability and User Interfaces".
  3. "FQL Overview". Facebook Developers.
  4. https://gellish.wiki.sourceforge.net/Querying+a+Gellish+English+database{{dead link. (July 2016)

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

query-languagescomputer-languagesdata-managementprogramming-language-classificationdatabase-management-systems