Change Query#where_not to Query#where.not
Refactor `Query#query`