final hashaggregation over ()
    local exchange (GATHER, SINGLE, [])
        remote exchange (GATHER, SINGLE, [])
            partial hashaggregation over ()
                semijoin (PARTITIONED):
                    remote exchange (REPARTITION, HASH, ["cs_bill_customer_sk"])
                        semijoin (PARTITIONED):
                            remote exchange (REPARTITION, HASH, ["cs_item_sk"])
                                join (INNER, REPLICATED):
                                    scan catalog_sales
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPLICATE, BROADCAST, [])
                                            scan date_dim
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["ss_item_sk"])
                                    final hashaggregation over (d_date_3, ss_item_sk, substr)
                                        local exchange (GATHER, SINGLE, [])
                                            remote exchange (REPARTITION, HASH, ["d_date_3", "ss_item_sk", "substr"])
                                                partial hashaggregation over (d_date_3, ss_item_sk, substr)
                                                    join (INNER, REPLICATED):
                                                        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 item
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["ss_customer_sk_50"])
                            cross join:
                                final hashaggregation over (ss_customer_sk_50)
                                    local exchange (GATHER, SINGLE, [])
                                        partial hashaggregation over (ss_customer_sk_50)
                                            join (INNER, PARTITIONED):
                                                remote exchange (REPARTITION, HASH, ["ss_customer_sk_50"])
                                                    scan store_sales
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["c_customer_sk"])
                                                        scan customer
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPLICATE, BROADCAST, [])
                                        final hashaggregation over ()
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (GATHER, SINGLE, [])
                                                    partial hashaggregation over ()
                                                        final hashaggregation over (ss_customer_sk_80)
                                                            local exchange (GATHER, SINGLE, [])
                                                                partial hashaggregation over (ss_customer_sk_80)
                                                                    join (INNER, PARTITIONED):
                                                                        remote exchange (REPARTITION, HASH, ["ss_customer_sk_80"])
                                                                            join (INNER, REPLICATED):
                                                                                scan store_sales
                                                                                local exchange (GATHER, SINGLE, [])
                                                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                                                        scan date_dim
                                                                        local exchange (GATHER, SINGLE, [])
                                                                            remote exchange (REPARTITION, HASH, ["c_customer_sk_100"])
                                                                                scan customer
            partial hashaggregation over ()
                semijoin (PARTITIONED):
                    remote exchange (REPARTITION, HASH, ["ws_bill_customer_sk"])
                        semijoin (PARTITIONED):
                            remote exchange (REPARTITION, HASH, ["ws_item_sk"])
                                join (INNER, REPLICATED):
                                    scan web_sales
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPLICATE, BROADCAST, [])
                                            scan date_dim
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["ss_item_sk_201"])
                                    final hashaggregation over (d_date_224, ss_item_sk_201, substr_272)
                                        local exchange (GATHER, SINGLE, [])
                                            remote exchange (REPARTITION, HASH, ["d_date_224", "ss_item_sk_201", "substr_272"])
                                                partial hashaggregation over (d_date_224, ss_item_sk_201, substr_272)
                                                    join (INNER, REPLICATED):
                                                        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 item
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["ss_customer_sk_300"])
                            cross join:
                                final hashaggregation over (ss_customer_sk_300)
                                    local exchange (GATHER, SINGLE, [])
                                        partial hashaggregation over (ss_customer_sk_300)
                                            join (INNER, PARTITIONED):
                                                remote exchange (REPARTITION, HASH, ["ss_customer_sk_300"])
                                                    scan store_sales
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["c_customer_sk_320"])
                                                        scan customer
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPLICATE, BROADCAST, [])
                                        final hashaggregation over ()
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (GATHER, SINGLE, [])
                                                    partial hashaggregation over ()
                                                        final hashaggregation over (ss_customer_sk_350)
                                                            local exchange (GATHER, SINGLE, [])
                                                                partial hashaggregation over (ss_customer_sk_350)
                                                                    join (INNER, PARTITIONED):
                                                                        remote exchange (REPARTITION, HASH, ["ss_customer_sk_350"])
                                                                            join (INNER, REPLICATED):
                                                                                scan store_sales
                                                                                local exchange (GATHER, SINGLE, [])
                                                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                                                        scan date_dim
                                                                        local exchange (GATHER, SINGLE, [])
                                                                            remote exchange (REPARTITION, HASH, ["c_customer_sk_370"])
                                                                                scan customer
