An html version of TwoStalemates.cql which is not in the cql.zip file.

Created by Gady Costeff.

CQL 3.2

; TwoStalemates.cql. Finding two stalemate positions in one study.
(match
:pgn heijden.pgn
:output TwoStalemates.pgn
(position
Ka3 kc1 ra-h4 b[d5,e6,f7,g8]
:piececount r 1
:piececount b 1
:piececount A 1
:piececount [qnp] 0
:stalemate
:flip
:shift
:variations
:markall
)
(position
Ka3 ka1 ra-h4 ba2
:piececount r 1
:piececount b 1
:piececount A 1
:piececount [qnp] 0
:stalemate
:flip
:shift
:variations
:markall
)
)
After executing this with "> cql TwoStalemates.cql" there are 21 studies found in the Harold van der Heijden Database 2015.
NB. When you see {MATCH} in the text, it means that cql has found the position asked for.

Below only 5 studies are presented: