print out parsed query