allsamecolor.cql

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

//all the pieces (at least 10) are on the same color square.
//sorted by the number of pieces

cql()
  flipvertical
    light [Aa] == [Aa]
  sort [Aa]>=10