printing all of the information for the queries