Added concept of predicate to WHERE queries