An html version of dobrescu.cql or flipped-configuration-count.cql

Created by Gady Costeff and Lewis Stiller.

CQL 5.1
; Find games with at least 2 different rotations or reflections ; of shifts of the configuration Ke6 be7 be4 nd5, sorted by the number of ; different rotations and reflections that occur. cql(input heijden.pgn variations) initial sort "number of transformations" flip 2 8 next* n on northwest 1 b on down 3 b on up 1 K

CQL 3.02
; This searches for studies in which the configuration Ke6 be7 be4 nd5 occurs ; shifted or flipped, but in which no pieces from the original position ; are on the same square as the pattern (match :pgn heijden.pgn :output dobrescu.pgn (position Ke6 be7 be4 nd5 :shift :flip :markall ; find each occurrence :relation (:pattern ; only pay attention to the pieces we found :shift ; allow shift :flip ; allow flip :originalsamecount 0 ; disregard identity matches :samesidetomove ; same side to move :variations ; look in variations ) ) )

After executing this with "> cql Dobrescu.cql" there are 6 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 3 studies are showed: