If two or more projects contains \"query\" as substring create an
OrPredicate holding predicates for all these projects, otherwise if
only one contains that, return only that one predicate by itself.