Start working on the query.