queries with projection + other minor fixes