PGN files need to be generated as input for the CQL program which evaluates queries. The initial attempt to do this in a faster way failed and was removed at https://github.com/RogerMarsh/chesstab/commit/f988d1d0aa5db32b30b7bb97d1f4dc41a870b14c.