correctly parse compound predicates