wcct7.cql

; wcct7.cql can be downloaded here.
; Find pairs of positions in win studies
; differing only in that the target is missing at least one white
; piece compared to the target
; This was the study theme of the 7th World Chess Composition Tournament

cql(input heijden.pgn result 1-0)
  relation 
    (tomove match)
    (sourcesquares [a_] mismatch 0) 
    (sourcesquares A targetsquares [aA] mismatch 0)
    (sourcesquares A targetsquares _ mismatch 1 64)