process queries