Query.exec mock applies query conditions to mock data