I don't know if it needs to be in this object, but the top level Query object should have a toString method that gives some sort of useful output even if just for debugging.