local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        final aggregation over (channel$gid, groupid, id$gid)
            local exchange (REPARTITION, HASH, ["channel$gid", "groupid", "id$gid"])
                remote exchange (REPARTITION, HASH, ["channel$gid", "groupid", "id$gid"])
                    partial aggregation over (channel$gid, groupid, id$gid)
                        local exchange (REPARTITION, ROUND_ROBIN, [])
                            final aggregation over (s_store_id)
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPARTITION, HASH, ["s_store_id"])
                                        partial aggregation over (s_store_id)
                                            join (INNER, REPLICATED):
                                                join (INNER, REPLICATED):
                                                    join (INNER, REPLICATED):
                                                        join (INNER, REPLICATED):
                                                            join (LEFT, PARTITIONED):
                                                                remote exchange (REPARTITION, HASH, ["ss_item_sk", "ss_ticket_number"])
                                                                    scan store_sales
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPARTITION, HASH, ["sr_item_sk", "sr_ticket_number"])
                                                                        scan store_returns
                                                            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, [])
                                                            scan promotion
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                        scan store
                            final aggregation over (cp_catalog_page_id)
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPARTITION, HASH, ["cp_catalog_page_id"])
                                        partial aggregation over (cp_catalog_page_id)
                                            join (INNER, REPLICATED):
                                                join (INNER, REPLICATED):
                                                    join (INNER, REPLICATED):
                                                        join (INNER, REPLICATED):
                                                            join (LEFT, PARTITIONED):
                                                                remote exchange (REPARTITION, HASH, ["cs_item_sk", "cs_order_number"])
                                                                    scan catalog_sales
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPARTITION, HASH, ["cr_item_sk", "cr_order_number"])
                                                                        scan catalog_returns
                                                            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, [])
                                                            scan promotion
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                        scan catalog_page
                            final aggregation over (web_site_id)
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPARTITION, HASH, ["web_site_id"])
                                        partial aggregation over (web_site_id)
                                            join (INNER, REPLICATED):
                                                join (INNER, REPLICATED):
                                                    join (INNER, REPLICATED):
                                                        join (INNER, REPLICATED):
                                                            join (LEFT, PARTITIONED):
                                                                remote exchange (REPARTITION, HASH, ["ws_item_sk", "ws_order_number"])
                                                                    scan web_sales
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPARTITION, HASH, ["wr_item_sk", "wr_order_number"])
                                                                        scan web_returns
                                                            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, [])
                                                            scan promotion
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                        scan web_site
