consecutive-checks-by-one-color.cql

// Download consecutive-checks-by-one-color.cql
// PGN output when run on sample.pgn

/*
Games with at least 20 consecutive checks by the same color
sorted by the number of consecutive checks
*/
cql(input hhdbvi.pgn)
20sort "number of consecutive checks"
  if wtm  else 
       nestban
        check+