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 (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 aggregation over (d_date_6, i_item_sk, substr)
                                                local exchange (GATHER, SINGLE, [])
                                                    partial aggregation 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_86"])
                                    cross join:
                                        final aggregation over (c_customer_sk_86)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["c_customer_sk_86"])
                                                    partial aggregation over (c_customer_sk_86)
                                                        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_136)
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPARTITION, HASH, ["c_customer_sk_136"])
                                                                            partial aggregation over (c_customer_sk_136)
                                                                                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 aggregation over (c_first_name_240, c_last_name_241)
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["c_first_name_240", "c_last_name_241"])
                    partial aggregation over (c_first_name_240, c_last_name_241)
                        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_232"])
                                                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_334"])
                                            final aggregation over (d_date_307, i_item_sk_334, substr_357)
                                                local exchange (GATHER, SINGLE, [])
                                                    partial aggregation over (d_date_307, i_item_sk_334, substr_357)
                                                        join (INNER, PARTITIONED):
                                                            remote exchange (REPARTITION, HASH, ["ss_item_sk_283"])
                                                                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_334"])
                                                                    scan item
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["c_customer_sk_416"])
                                    cross join:
                                        final aggregation over (c_customer_sk_416)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["c_customer_sk_416"])
                                                    partial aggregation over (c_customer_sk_416)
                                                        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_468)
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPARTITION, HASH, ["c_customer_sk_468"])
                                                                            partial aggregation over (c_customer_sk_468)
                                                                                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
