Building a dynamic query using recursion

Thanks Matt for the reply! So it’s almost like restructuring the input into a format that makes it easier to evaluate. I’ll give that a shot.