Fix some queries

Fix for typos in queries