local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        Filter
            cross join:
                join (LEFT, REPLICATED):
                    join (INNER, PARTITIONED):
                        remote exchange (REPARTITION, HASH, ["cr_returning_customer_sk"])
                            cte customer_total_return
                                final aggregation over (ca_state, cr_returning_customer_sk)
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["ca_state", "cr_returning_customer_sk"])
                                            partial aggregation over (ca_state, cr_returning_customer_sk)
                                                join (INNER, PARTITIONED):
                                                    remote exchange (REPARTITION, HASH, ["cr_returning_addr_sk"])
                                                        join (INNER, REPLICATED):
                                                            Filter
                                                                scan catalog_returns
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                    Filter
                                                                        scan date_dim
                                                    local exchange (GATHER, SINGLE, [])
                                                        remote exchange (REPARTITION, HASH, ["ca_address_sk"])
                                                            scan customer_address
                        local exchange (GATHER, SINGLE, [])
                            remote exchange (REPARTITION, HASH, ["c_customer_sk"])
                                join (INNER, REPLICATED):
                                    Filter
                                        scan customer
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPLICATE, BROADCAST, [])
                                            Filter
                                                scan customer_address
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPLICATE, BROADCAST, [])
                            final aggregation over (ca_state_93)
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPARTITION, HASH, ["ca_state_93"])
                                        partial aggregation over (ca_state_93)
                                            remote exchange (REPARTITION, HASH, ["ca_state_93", "cr_returning_customer_sk_37", "sum_103"])
                                                cte customer_total_return
                                                    final aggregation over (ca_state_93, cr_returning_customer_sk_37)
                                                        local exchange (GATHER, SINGLE, [])
                                                            remote exchange (REPARTITION, HASH, ["ca_state_93", "cr_returning_customer_sk_37"])
                                                                partial aggregation over (ca_state_93, cr_returning_customer_sk_37)
                                                                    join (INNER, PARTITIONED):
                                                                        remote exchange (REPARTITION, HASH, ["cr_returning_addr_sk_40"])
                                                                            join (INNER, REPLICATED):
                                                                                Filter
                                                                                    scan catalog_returns
                                                                                local exchange (GATHER, SINGLE, [])
                                                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                                                        Filter
                                                                                            scan date_dim
                                                                        local exchange (GATHER, SINGLE, [])
                                                                            remote exchange (REPARTITION, HASH, ["ca_address_sk_85"])
                                                                                scan customer_address
                local exchange (GATHER, SINGLE, [])
                    remote exchange (REPLICATE, BROADCAST, [])
                        single aggregation over ()
                            values (1 rows)
