
                select
                    robj.LpuSection_id as "LpuSection_id"
                from
                    r52.v_RegistryLpuSection robj
                    inner join lateral(
                        select RegistryQueue_id
                        from r52.v_RegistryQueue
                        where robj.RegistryQueue_id = RegistryQueue_id
                        UNION ALL
                        select RegistryQueue_id
                        from r52.v_RegistryQueue
                        where robj.Registry_id = Registry_id
                    ) rq on true
                where
                    rq.RegistryQueue_id in (520101000170160,520101000170164)
                limit 1
            
