corrected query sample