Negative Comparisons
For negative comparison, you can use the != comparison operator or the not logical operator.
This example selects legislators whose birthdate is January 1, 1960 or later and whose first name is not Adam:
In many cases, however, the not logical operator is more flexible. This example query finds all senators whose last name does not begin with A or B: