correct queries syntax