local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        final hashaggregation over (c_first_name, c_last_name)
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["c_first_name", "c_last_name"])
                    partial hashaggregation over (c_first_name, c_last_name)
                        semijoin (PARTITIONED):
                            remote exchange (REPARTITION, HASH, ["cs_bill_customer_sk"])
                                semijoin (PARTITIONED):
                                    remote exchange (REPARTITION, HASH, ["cs_item_sk"])
                                        join (INNER, PARTITIONED):
                                            remote exchange (REPARTITION, HASH, ["cs_bill_customer_sk"])
                                                join (INNER, REPLICATED):
                                                    scan catalog_sales
                                                    local exchange (GATHER, SINGLE, [])
                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                            scan date_dim (pushdown = true)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["c_customer_sk"])
                                                    scan customer
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["i_item_sk"])
                                            final hashaggregation over (d_date_6, i_item_sk, substr)
                                                local exchange (GATHER, SINGLE, [])
                                                    partial hashaggregation over (d_date_6, i_item_sk, substr)
                                                        join (INNER, PARTITIONED):
                                                            remote exchange (REPARTITION, HASH, ["ss_item_sk"])
                                                                join (INNER, REPLICATED):
                                                                    scan store_sales
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                                            scan date_dim (pushdown = true)
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPARTITION, HASH, ["i_item_sk"])
                                                                    scan item
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["c_customer_sk_76"])
                                    cross join:
                                        final hashaggregation over (c_customer_sk_76)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["c_customer_sk_76"])
                                                    partial hashaggregation over (c_customer_sk_76)
                                                        join (INNER, REPLICATED):
                                                            scan store_sales
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                    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 (c_customer_sk_126)
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPARTITION, HASH, ["c_customer_sk_126"])
                                                                            partial hashaggregation over (c_customer_sk_126)
                                                                                join (INNER, REPLICATED):
                                                                                    join (INNER, REPLICATED):
                                                                                        scan store_sales
                                                                                        local exchange (GATHER, SINGLE, [])
                                                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                                                scan date_dim (pushdown = true)
                                                                                    local exchange (GATHER, SINGLE, [])
                                                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                                                            scan customer
        final hashaggregation over (c_first_name_213, c_last_name_214)
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["c_first_name_213", "c_last_name_214"])
                    partial hashaggregation over (c_first_name_213, c_last_name_214)
                        semijoin (PARTITIONED):
                            remote exchange (REPARTITION, HASH, ["ws_bill_customer_sk"])
                                semijoin (PARTITIONED):
                                    remote exchange (REPARTITION, HASH, ["ws_item_sk"])
                                        join (INNER, PARTITIONED):
                                            remote exchange (REPARTITION, HASH, ["c_customer_sk_205"])
                                                scan customer
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["ws_bill_customer_sk"])
                                                    join (INNER, REPLICATED):
                                                        scan web_sales
                                                        local exchange (GATHER, SINGLE, [])
                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                scan date_dim (pushdown = true)
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["i_item_sk_307"])
                                            final hashaggregation over (d_date_280, i_item_sk_307, substr_330)
                                                local exchange (GATHER, SINGLE, [])
                                                    partial hashaggregation over (d_date_280, i_item_sk_307, substr_330)
                                                        join (INNER, PARTITIONED):
                                                            remote exchange (REPARTITION, HASH, ["ss_item_sk_256"])
                                                                join (INNER, REPLICATED):
                                                                    scan store_sales
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                                            scan date_dim (pushdown = true)
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPARTITION, HASH, ["i_item_sk_307"])
                                                                    scan item
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["c_customer_sk_379"])
                                    cross join:
                                        final hashaggregation over (c_customer_sk_379)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["c_customer_sk_379"])
                                                    partial hashaggregation over (c_customer_sk_379)
                                                        join (INNER, REPLICATED):
                                                            scan store_sales
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                    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 (c_customer_sk_431)
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPARTITION, HASH, ["c_customer_sk_431"])
                                                                            partial hashaggregation over (c_customer_sk_431)
                                                                                join (INNER, REPLICATED):
                                                                                    join (INNER, REPLICATED):
                                                                                        scan store_sales
                                                                                        local exchange (GATHER, SINGLE, [])
                                                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                                                scan date_dim (pushdown = true)
                                                                                    local exchange (GATHER, SINGLE, [])
                                                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                                                            scan customer
