Executing a query.