local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        join (INNER, REPLICATED):
            join (INNER, REPLICATED):
                join (INNER, PARTITIONED):
                    remote exchange (REPARTITION, HASH, ["rank"])
                        local exchange (GATHER, SINGLE, [])
                            remote exchange (GATHER, SINGLE, [])
                                cross join:
                                    final hashaggregation over (ss_item_sk)
                                        local exchange (GATHER, SINGLE, [])
                                            remote exchange (REPARTITION, HASH, ["ss_item_sk"])
                                                partial hashaggregation over (ss_item_sk)
                                                    scan store_sales
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPLICATE, BROADCAST, [])
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (GATHER, SINGLE, [])
                                                    final hashaggregation over (ss_store_sk_13)
                                                        local exchange (GATHER, SINGLE, [])
                                                            remote exchange (REPARTITION, HASH, ["ss_store_sk_13"])
                                                                partial hashaggregation over (ss_store_sk_13)
                                                                    scan store_sales
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["rank_111"])
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (GATHER, SINGLE, [])
                                    cross join:
                                        final hashaggregation over (ss_item_sk_47)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["ss_item_sk_47"])
                                                    partial hashaggregation over (ss_item_sk_47)
                                                        scan store_sales
                                        local exchange (GATHER, SINGLE, [])
                                            remote exchange (REPLICATE, BROADCAST, [])
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (GATHER, SINGLE, [])
                                                        final hashaggregation over (ss_store_sk_84)
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPARTITION, HASH, ["ss_store_sk_84"])
                                                                    partial hashaggregation over (ss_store_sk_84)
                                                                        scan store_sales
                local exchange (GATHER, SINGLE, [])
                    remote exchange (REPLICATE, BROADCAST, [])
                        scan item
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPLICATE, BROADCAST, [])
                    scan item
