Work on queries.