Make sure query operation is correct