preliminary support for parsing and printing split queries

Peter, can you take a quick look and see if this seems like a reasonable approach so far?
Peter, sorry to be dense, could you explain your comment a bit more? If line 468 contained several unsequenced calls to printInst() then I can see the problem, but how can there be a problem with a single call?