query debugged