An html version of staircase.cql. Created by Gady Costeff and Lewis Stiller.

;;This filter file looks for queen staircases
;;search for a queen staircase. 
;;The "shift" and the "flip" commands are used to take the given sequence
;;and make sure it can be started from any square and any direction
;;The "flipcolor" command is used to make sure that it works with black queens too.

;; Because there is no :variations keyword, this only searches for staircases in the
;; main line.

;; Because of the presence of both :shift and :flip commands, this query takes a long time.

 :pgn heijden.pgn
 :output staircase.pgn
    ((position Qa2) 
     (position Qb2) 
     (position Qb3) 
     (position Qc3)
     (position Qc4))

After executing this with "> cql Staircase.cql" there are 539 studies found in the Harold van der Heijden Database 2015.
NB. When you see {MATCH} in the text, it means that cql has found the position asked for.

Below only 5 studies are presented: