corrected queries