handling of 'NOT' predicate in where clause