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:

your web browser and/or your host do not support iframes as required to display the chessboard

your web browser and/or your host do not support iframes as required to display the chessboard

your web browser and/or your host do not support iframes as required to display the chessboard

"I just do art because I am ugly and there is nothing else for me to do - Andy Warhol."