local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        join (INNER, PARTITIONED):
            remote exchange (REPARTITION, HASH, ["d_week_seq", "s_store_id"])
                join (INNER, REPLICATED):
                    join (INNER, REPLICATED):
                        final aggregation over (d_week_seq, ss_store_sk)
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["d_week_seq", "ss_store_sk"])
                                    partial aggregation over (d_week_seq, ss_store_sk)
                                        join (INNER, REPLICATED):
                                            scan store_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
                        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 (REPARTITION, HASH, ["expr_361", "s_store_id_235"])
                    join (INNER, REPLICATED):
                        join (INNER, REPLICATED):
                            final aggregation over (d_week_seq_147, ss_store_sk_127)
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPARTITION, HASH, ["d_week_seq_147", "ss_store_sk_127"])
                                        partial aggregation over (d_week_seq_147, ss_store_sk_127)
                                            join (INNER, REPLICATED):
                                                scan store_sales
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                        scan date_dim
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPLICATE, BROADCAST, [])
                                    scan date_dim
                        local exchange (GATHER, SINGLE, [])
                            remote exchange (REPLICATE, BROADCAST, [])
                                scan store
