AllQuery.sql updated

Fixed syntax errors