Skip to main content

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.

Filter by
Sorted by
Tagged with
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?...
BCLC's user avatar
  • 2,162
11 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/...
Cyriac Antony's user avatar
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's user avatar
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 ...
dDo's user avatar
  • 69
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 annotated with this sacrifice. I could find blogs with individual ...
user avatar
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'...
Joe's user avatar
  • 4,301
6 votes
2 answers

Is CQL executable available anwhere online?

This article and some questions on this forum - mention as a source for getting cql.exe, but that domain seems unclaimed at the moment. Is this executable available anywhere ...
Joe's user avatar
  • 4,301
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 ...
Joe's user avatar
  • 4,301