Simplify queries.