An html version of echostalemate.cql

; echostalemate.cql can be downloaded here.
;Find games in which there are two 
;positions P1 and P2, not the same, 
; with the same side to move, such that P1 is a stalemate, and such that
; P2 is reached from P1 by a shift or a flip (or a shift and a flip)

(match
 :pgn heijden.pgn
 :output out.pgn
 (position
  :stalemate
  :relation (:shift  ; allow shifts
	:samesidetomove  ; same side to move in P1 and P2
	:originaldifferentcount 1 100 ; disallow identical positions
	:flip) ; allow flips
  :variations ; search in variations

 )
)