added method to get Predicates from SELECT statements