wcct7.cql

// Download wcct7.cql
// PGN output when run on sample.pgn

/************
Find pairs of positions in win studies
differing only in that the source 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 hhdbvi.pgn result 1-0)
  echo (source target){
    sourcetarget
    sidetomove==source:sidetomove
    mismatches= ~(sourcetarget)
    mismatches
    mismatches==   source:   ///"missing: " mismatches
   }