final aggregation over ()
    local exchange (GATHER, SINGLE, [])
        remote exchange (GATHER, SINGLE, [])
            partial aggregation 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 (pushdown = true)
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["i_item_sk"])
                                    final aggregation over (d_date_5, i_item_sk, substr)
                                        local exchange (GATHER, SINGLE, [])
                                            partial aggregation over (d_date_5, 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"])
                            cross join:
                                final aggregation over (c_customer_sk)
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["c_customer_sk"])
                                            partial aggregation over (c_customer_sk)
                                                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_117)
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPARTITION, HASH, ["c_customer_sk_117"])
                                                                    partial aggregation over (c_customer_sk_117)
                                                                        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
            partial aggregation 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 (pushdown = true)
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["i_item_sk_288"])
                                    final aggregation over (d_date_261, i_item_sk_288, substr_311)
                                        local exchange (GATHER, SINGLE, [])
                                            partial aggregation over (d_date_261, i_item_sk_288, substr_311)
                                                join (INNER, PARTITIONED):
                                                    remote exchange (REPARTITION, HASH, ["ss_item_sk_237"])
                                                        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_288"])
                                                            scan item
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["c_customer_sk_370"])
                            cross join:
                                final aggregation over (c_customer_sk_370)
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["c_customer_sk_370"])
                                            partial aggregation over (c_customer_sk_370)
                                                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_422)
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPARTITION, HASH, ["c_customer_sk_422"])
                                                                    partial aggregation over (c_customer_sk_422)
                                                                        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
