discoveredchecks.cql

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

/**********
Find games with at least 5 discovered checks, sorted by the number
of discovered checks. 
************/

cql(input hhdbvi.pgn 
    sort matchcount 5 100
    )
not initial
(~to)