Thank you - I'm looking into a solution using `LATERAL`.