local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        cross join:
            join (LEFT, REPLICATED):
                join (INNER, PARTITIONED):
                    remote exchange (REPARTITION, HASH, ["c_customer_sk"])
                        scan customer
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["sr_customer_sk"])
                            join (INNER, REPLICATED):
                                final aggregation over (sr_customer_sk, sr_store_sk)
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["sr_customer_sk", "sr_store_sk"])
                                            partial aggregation over (sr_customer_sk, sr_store_sk)
                                                join (INNER, REPLICATED):
                                                    scan store_returns
                                                    local exchange (GATHER, SINGLE, [])
                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                            scan date_dim
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPLICATE, BROADCAST, [])
                                        scan store
                local exchange (GATHER, SINGLE, [])
                    remote exchange (REPLICATE, BROADCAST, [])
                        final aggregation over (sr_store_sk_24)
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["sr_store_sk_24"])
                                    partial aggregation over (sr_store_sk_24)
                                        final aggregation over (sr_customer_sk_20, sr_store_sk_24)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["sr_customer_sk_20", "sr_store_sk_24"])
                                                    partial aggregation over (sr_customer_sk_20, sr_store_sk_24)
                                                        join (INNER, REPLICATED):
                                                            scan store_returns
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                    scan date_dim
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPLICATE, BROADCAST, [])
                    single aggregation over ()
                        values (1 rows)
