testing code for queiries