Add queries for public and all tasks.