basic print query