Fixed a few typos in queries