Solutionunvalidated

Rewrite the traversal to reduce the number of OR branches—e.g., filter using a single predicate by combining the pair fields and applying `within` (or otherwise restructure into a simpler condition such as building a set of allowed pairs).

b631be55-88e1-4de7-af44-f03670b0e111

Rewrite the traversal to reduce the number of OR branches—e.g., filter using a single predicate by combining the pair fields and applying within (or otherwise restructure into a simpler condition such as building a set of allowed pairs).