Filter logic at different query depths

yes! I have been watching the integration of DQL into custom as well as upcoming JS integration into Custom. Maybe that could make this whole process doable without an external script (lambda function)