Questions tagged [cql]

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

Filter by
Sorted by
Tagged with
5 votes
1 answer
709 views

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?...
user avatar
  • 1
10 votes
1 answer
419 views

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/...
user avatar
2 votes
1 answer
60 views

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"]
user avatar
0 votes
2 answers
103 views

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 ...
user avatar
  • 69
13 votes
3 answers
1k views

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 ...
user avatar
9 votes
1 answer
266 views

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'...
user avatar
  • 4,263
6 votes
2 answers
131 views

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 ...
user avatar
  • 4,263
9 votes
1 answer
525 views

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 ...
user avatar
  • 4,263