fixed typos in queries