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

;;Multiple consecutive rook checks followed by king moving to empty square; usually to avoid stalemate if rook is captured. Also called Rampant Rook.
(match
 :pgn heijden.pgn
 :output ramblingrook.pgn
 :result 1/2
 (position
  :wtm
  :sequence(
	    (position :movefrom R :moveto .)
	    (position :movefrom k :check)
	    (position :movefrom R :moveto .)
	    (position :movefrom k :check)
	    (position :movefrom R :moveto .)
	    (position :movefrom k :check)
	    (position :movefrom R :moveto .)
	    (position :movefrom k :check)
	    (position :movefrom R :moveto .)
	    (position :movefrom k :check))))
After executing this with "> cql RamblingRook.cql" there are 771 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: