local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        join (INNER, PARTITIONED):
            join (INNER, PARTITIONED):
                remote exchange (REPARTITION, HASH, ["add", "i_brand_55", "i_category_59", "s_company_name_137", "s_store_name_125"])
                    remote exchange (REPARTITION, HASH, ["avg_171", "d_moy_100", "d_year_98", "i_brand_55", "i_category_59", "rank_178", "s_company_name_137", "s_store_name_125", "sum_164"])
                        cte v1
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["i_brand_55", "i_category_59", "s_company_name_137", "s_store_name_125"])
                                    final hashaggregation over (d_moy_100, d_year_98, i_brand_55, i_category_59, s_company_name_137, s_store_name_125)
                                        local exchange (GATHER, SINGLE, [])
                                            remote exchange (REPARTITION, HASH, ["d_moy_100", "d_year_98", "i_brand_55", "i_category_59", "s_company_name_137", "s_store_name_125"])
                                                partial hashaggregation over (d_moy_100, d_year_98, i_brand_55, i_category_59, s_company_name_137, s_store_name_125)
                                                    join (INNER, REPLICATED):
                                                        join (INNER, REPLICATED):
                                                            join (INNER, REPLICATED):
                                                                Filter
                                                                    scan store_sales
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                                        Filter
                                                                            scan date_dim
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                    scan item
                                                        local exchange (GATHER, SINGLE, [])
                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                scan store
                local exchange (GATHER, SINGLE, [])
                    remote exchange (REPARTITION, HASH, ["i_brand", "i_category", "rank", "s_company_name", "s_store_name"])
                        Filter
                            remote exchange (REPARTITION, HASH, ["avg", "d_moy", "d_year", "i_brand", "i_category", "rank", "s_company_name", "s_store_name", "sum_8"])
                                cte v1
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["i_brand", "i_category", "s_company_name", "s_store_name"])
                                            final hashaggregation over (d_moy, d_year, i_brand, i_category, s_company_name, s_store_name)
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["d_moy", "d_year", "i_brand", "i_category", "s_company_name", "s_store_name"])
                                                        partial hashaggregation over (d_moy, d_year, i_brand, i_category, s_company_name, s_store_name)
                                                            join (INNER, REPLICATED):
                                                                join (INNER, REPLICATED):
                                                                    join (INNER, REPLICATED):
                                                                        Filter
                                                                            scan store_sales
                                                                        local exchange (GATHER, SINGLE, [])
                                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                                Filter
                                                                                    scan date_dim
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                                            scan item
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                                        scan store
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["i_brand_214", "i_category_218", "s_company_name_296", "s_store_name_284", "subtract"])
                    remote exchange (REPARTITION, HASH, ["avg_330", "d_moy_259", "d_year_257", "i_brand_214", "i_category_218", "rank_337", "s_company_name_296", "s_store_name_284", "sum_323"])
                        cte v1
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["i_brand_214", "i_category_218", "s_company_name_296", "s_store_name_284"])
                                    final hashaggregation over (d_moy_259, d_year_257, i_brand_214, i_category_218, s_company_name_296, s_store_name_284)
                                        local exchange (GATHER, SINGLE, [])
                                            remote exchange (REPARTITION, HASH, ["d_moy_259", "d_year_257", "i_brand_214", "i_category_218", "s_company_name_296", "s_store_name_284"])
                                                partial hashaggregation over (d_moy_259, d_year_257, i_brand_214, i_category_218, s_company_name_296, s_store_name_284)
                                                    join (INNER, REPLICATED):
                                                        join (INNER, REPLICATED):
                                                            join (INNER, REPLICATED):
                                                                Filter
                                                                    scan store_sales
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                                        Filter
                                                                            scan date_dim
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                    scan item
                                                        local exchange (GATHER, SINGLE, [])
                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                scan store
