Questions tagged [cql]

For questions about the Chess Query Language, a tool which helps you find positions or moves satisfying certain criteria within a large database of chess games or studies.

CQL is an acronym for Chess Query Language. It lets you find positions or moves satisfying certain criteria within a large database of chess games or studies. It is created and developed by Gady Costeff and Lewis Stiller.

Useful links:

8 questions
13
votes
3 answers

How can I get a collection of chess games with a 'Greek gift' sacrifice?

I would like to make a collection of chess games that feature the 'Greek gift' sacrifice. There are few games on chessgames.com annotated with this sacrifice. I could find blogs with individual examples of games with this type of sacrifice (example:…
user14405
10
votes
1 answer

Moving absolutely pinned piece to give checkmate: has this ever occured in a master game?

We know that an absolutely pinned piece (a piece pinned against its own king) can move and give a check, and the check can even be a mate. The following is an example of such a checkmate. [FEN "8/8/2k5/8/4p2b/r7/3RKPBr/q7 w - - 0 1"] 1. f4…
Cyriac Antony
  • 1,291
  • 8
  • 26
9
votes
1 answer

What is the CQL syntax for combinations where king is checked along a file, and the square near it is attacked by bishop or queen?

I am looking to search for combinations similar to the one in Karpov - Taimanov, 1977 - a knight check, is followed by opening of an 'h' file, and the rook comes with decisive effect because attacker's queen covers the diagonal. I am only learning…
Joe
  • 4,341
  • 2
  • 23
  • 42
9
votes
1 answer

How do you search a chess database for exchange sacrifices?

I am looking for a way within any of the common chess packages to search for a specific maneuver, such as a rook capturing a protected. bishop. I've heard of CQL, but have never used it. I am curious if it supports something like this.
Joe
  • 4,341
  • 2
  • 23
  • 42
6
votes
2 answers

Is CQL executable available anwhere online?

This article and some questions on this forum - mention http://www.rbnn.com/cql/ as a source for getting cql.exe, but that domain seems unclaimed at the moment. Is this executable available anywhere else online?
Joe
  • 4,341
  • 2
  • 23
  • 42
5
votes
1 answer

Generalise 'grandmaster games (...) castle opposite sides and the queenside players loses?' to finding games based on themes

I would like to generalise What are examples of grandmaster games where both Black and White castle opposite sides and the queenside players loses? Question: Is there a way I can search this up myself? Like perhaps in the chessgames, chesstempo,…
BCLC
  • 1
  • 1
  • 15
  • 42
2
votes
1 answer

CQL - Isolated Queen Pawn postions

I'm looking for a CQL query that will return all positions with the below pawn structure for both White and Black [FEN "8/pp3ppp/4p3/8/3P4/8/PP3PPP/8 w - - 0 1"]
Raul Diaz
  • 41
  • 2
0
votes
2 answers

Script for finding undefended pieces

I am looking for a script/code/CQL that searches for undefended pieces in a given position. I know that is possible to do it in the python chess library, but that is too complicated for me. Is there any easy way?
dDo
  • 69
  • 2