query formulation corrected