print out query string