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, PARTITIONED):
                                            remote exchange (REPARTITION, HASH, ["ss_sold_date_sk"])
                                                scan store_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["d_date_sk"])
                                                    scan date_dim
                        local exchange (GATHER, SINGLE, [])
                            remote exchange (REPLICATE, BROADCAST, [])
                                scan date_dim (pushdown = true)
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPLICATE, BROADCAST, [])
                            scan store
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["expr_368", "s_store_id_240"])
                    join (INNER, REPLICATED):
                        join (INNER, REPLICATED):
                            final aggregation over (d_week_seq_151, ss_store_sk_130)
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPARTITION, HASH, ["d_week_seq_151", "ss_store_sk_130"])
                                        partial aggregation over (d_week_seq_151, ss_store_sk_130)
                                            join (INNER, PARTITIONED):
                                                remote exchange (REPARTITION, HASH, ["ss_sold_date_sk_123"])
                                                    scan store_sales
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["d_date_sk_147"])
                                                        scan date_dim
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPLICATE, BROADCAST, [])
                                    scan date_dim (pushdown = true)
                        local exchange (GATHER, SINGLE, [])
                            remote exchange (REPLICATE, BROADCAST, [])
                                scan store
