added more sqlpredicate functionality