An html version of dobrescu.cql

; dobrescu.cql can be downloaded here.
; 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 out.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
	     )
  )
)