I have a recursive function that calls another function and unions on the results.
The recursive function:
return query with subquery as ( select filt