Added not= query comparator

Also cleaned up the definitions of the already-existing query comparators.