@MichelDiz awesome! That will work. Actually, it will work better than what I was asking about.
I think I need to spend some more time understanding how to use var. I tried to split the query similar to what you proposed, but it was simply not working.
Thank you.