local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        cross join:
            join (LEFT, REPLICATED):
                join (INNER, PARTITIONED):
                    remote exchange (REPARTITION, HASH, ["cr_returning_customer_sk"])
                        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):
                                                    scan catalog_returns
                                                    local exchange (GATHER, SINGLE, [])
                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                            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):
                                scan customer
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPLICATE, BROADCAST, [])
                                        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)
                                        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):
                                                                    scan catalog_returns
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                                            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)
