Apply negation when converting queries.