declare thisQuery variable