How to find nodes with a scalar predicate having values found during traversal

You said you got it (That worked), wanted to see how you got it. What you just wrote has already been said.