submitting query