Added NOT logical operator to queries