Chess Query Language

Chess Query Language (CQL) is a structured query language which is designed to allow chess players and researchers to search for games, positions, problems, and studies in a quick and relatively easy manner.

The user specifies the items that they are looking for, and the database in which to search. After running, the query creates a file in Portable Game Notation (PGN) format that contains all the games or positions matching the query criteria.

The language is designed to be extremely flexible; for example, a user does not have to define exactly the position or theme that they are looking for, but can modify the query so that it will find similar results within certain parameters.

Items and themes that CQL can search for include, but are not limited to:

  • Player names
  • Date and location of games
  • Chess opening used
  • Certain moves or combinations of moves
  • Certain pieces located on certain squares
  • Patterns of pieces in certain locations
  • Which pieces each side has left
  • Complex criteria such as king safety or certain pawn structures.

Famous quotes containing the words language, chess and/or query:

    I am always sorry when any language is lost, because languages are the pedigree of nations.
    Samuel Johnson (1709–1784)

    Women’s childhood relationships with their fathers are important to them all their lives. Regardless of age or status, women who seem clearest about their goals and most satisfied with their lives and personal and family relationships usually remember that their fathers enjoyed them and were actively interested in their development.
    —Stella Chess (20th century)

    Such condition of suspended judgment indeed, in its more genial development and under felicitous culture, is but the expectation, the receptivity, of the faithful scholar, determined not to foreclose what is still a question—the “philosophic temper,” in short, for which a survival of query will be still the salt of truth, even in the most absolutely ascertained knowledge.
    Walter Pater (1839–1894)