Implement GazIR query