local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        join (INNER, PARTITIONED):
            cross join:
                final hashaggregation over (i_brand_id, i_category_id, i_class_id)
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["i_brand_id", "i_category_id", "i_class_id"])
                            partial hashaggregation over (i_brand_id, i_category_id, i_class_id)
                                join (INNER, REPLICATED):
                                    semijoin (PARTITIONED):
                                        remote exchange (REPARTITION, HASH, ["ss_item_sk"])
                                            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, ["i_item_sk_1"])
                                                join (INNER, PARTITIONED):
                                                    remote exchange (REPARTITION, HASH, ["i_brand_id_8", "i_category_id_12", "i_class_id_10"])
                                                        scan item
                                                    final hashaggregation over (expr_207, expr_208, expr_209)
                                                        local exchange (GATHER, SINGLE, [])
                                                            remote exchange (REPARTITION, HASH, ["i_brand_id_53", "i_category_id_57", "i_class_id_55"])
                                                                partial hashaggregation over (i_brand_id_53, i_category_id_57, i_class_id_55)
                                                                    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
                                                            remote exchange (REPARTITION, HASH, ["i_brand_id_105", "i_category_id_109", "i_class_id_107"])
                                                                partial hashaggregation over (i_brand_id_105, i_category_id_109, i_class_id_107)
                                                                    join (INNER, REPLICATED):
                                                                        join (INNER, REPLICATED):
                                                                            scan catalog_sales
                                                                            local exchange (GATHER, SINGLE, [])
                                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                                    scan date_dim
                                                                        local exchange (GATHER, SINGLE, [])
                                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                                scan item
                                                            remote exchange (REPARTITION, HASH, ["i_brand_id_161", "i_category_id_165", "i_class_id_163"])
                                                                partial hashaggregation over (i_brand_id_161, i_category_id_165, i_class_id_163)
                                                                    join (INNER, REPLICATED):
                                                                        join (INNER, REPLICATED):
                                                                            scan web_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 (REPLICATE, BROADCAST, [])
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (GATHER, SINGLE, [])
                                                    scan date_dim
                local exchange (GATHER, SINGLE, [])
                    remote exchange (REPLICATE, BROADCAST, [])
                        final hashaggregation over ()
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (GATHER, SINGLE, [])
                                    partial hashaggregation over ()
                                        join (INNER, REPLICATED):
                                            scan store_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
                                    partial hashaggregation over ()
                                        join (INNER, REPLICATED):
                                            scan catalog_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
                                    partial hashaggregation over ()
                                        join (INNER, REPLICATED):
                                            scan web_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
            cross join:
                final hashaggregation over (i_brand_id_492, i_category_id_496, i_class_id_494)
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["i_brand_id_492", "i_category_id_496", "i_class_id_494"])
                            partial hashaggregation over (i_brand_id_492, i_category_id_496, i_class_id_494)
                                join (INNER, REPLICATED):
                                    semijoin (PARTITIONED):
                                        remote exchange (REPARTITION, HASH, ["ss_item_sk_464"])
                                            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, ["i_item_sk_536"])
                                                join (INNER, PARTITIONED):
                                                    remote exchange (REPARTITION, HASH, ["i_brand_id_543", "i_category_id_547", "i_class_id_545"])
                                                        scan item
                                                    final hashaggregation over (expr_811, expr_812, expr_813)
                                                        local exchange (GATHER, SINGLE, [])
                                                            remote exchange (REPARTITION, HASH, ["i_brand_id_588", "i_category_id_592", "i_class_id_590"])
                                                                partial hashaggregation over (i_brand_id_588, i_category_id_592, i_class_id_590)
                                                                    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
                                                            remote exchange (REPARTITION, HASH, ["i_brand_id_675", "i_category_id_679", "i_class_id_677"])
                                                                partial hashaggregation over (i_brand_id_675, i_category_id_679, i_class_id_677)
                                                                    join (INNER, REPLICATED):
                                                                        join (INNER, REPLICATED):
                                                                            scan catalog_sales
                                                                            local exchange (GATHER, SINGLE, [])
                                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                                    scan date_dim
                                                                        local exchange (GATHER, SINGLE, [])
                                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                                scan item
                                                            remote exchange (REPARTITION, HASH, ["i_brand_id_765", "i_category_id_769", "i_class_id_767"])
                                                                partial hashaggregation over (i_brand_id_765, i_category_id_769, i_class_id_767)
                                                                    join (INNER, REPLICATED):
                                                                        join (INNER, REPLICATED):
                                                                            scan web_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 (REPLICATE, BROADCAST, [])
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (GATHER, SINGLE, [])
                                                    scan date_dim
                local exchange (GATHER, SINGLE, [])
                    remote exchange (REPLICATE, BROADCAST, [])
                        final hashaggregation over ()
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (GATHER, SINGLE, [])
                                    partial hashaggregation over ()
                                        join (INNER, REPLICATED):
                                            scan store_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
                                    partial hashaggregation over ()
                                        join (INNER, REPLICATED):
                                            scan catalog_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
                                    partial hashaggregation over ()
                                        join (INNER, REPLICATED):
                                            scan web_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
