local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        final aggregation over (c_first_name, c_last_name)
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["c_first_name", "c_last_name"])
                    partial aggregation 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
                                            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 aggregation over (d_date_3, i_item_sk, substr)
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["d_date_3", "i_item_sk", "substr"])
                                                        partial aggregation over (d_date_3, i_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, ["c_customer_sk_80"])
                                    cross join:
                                        final aggregation over (c_customer_sk_80)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["c_customer_sk_80"])
                                                    partial aggregation over (c_customer_sk_80)
                                                        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 aggregation over ()
                                                    local exchange (GATHER, SINGLE, [])
                                                        remote exchange (GATHER, SINGLE, [])
                                                            partial aggregation over ()
                                                                final aggregation over (c_customer_sk_128)
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPARTITION, HASH, ["c_customer_sk_128"])
                                                                            partial aggregation over (c_customer_sk_128)
                                                                                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 customer
        final aggregation over (c_first_name_229, c_last_name_230)
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["c_first_name_229", "c_last_name_230"])
                    partial aggregation over (c_first_name_229, c_last_name_230)
                        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, ["ws_bill_customer_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, ["c_customer_sk_221"])
                                                    scan customer
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["i_item_sk_319"])
                                            final aggregation over (d_date_293, i_item_sk_319, substr_341)
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["d_date_293", "i_item_sk_319", "substr_341"])
                                                        partial aggregation over (d_date_293, i_item_sk_319, substr_341)
                                                            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, ["c_customer_sk_399"])
                                    cross join:
                                        final aggregation over (c_customer_sk_399)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["c_customer_sk_399"])
                                                    partial aggregation over (c_customer_sk_399)
                                                        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 aggregation over ()
                                                    local exchange (GATHER, SINGLE, [])
                                                        remote exchange (GATHER, SINGLE, [])
                                                            partial aggregation over ()
                                                                final aggregation over (c_customer_sk_449)
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPARTITION, HASH, ["c_customer_sk_449"])
                                                                            partial aggregation over (c_customer_sk_449)
                                                                                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 customer
