query corrected