local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        final aggregation over (ca_city, ca_zip)
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["ca_city", "ca_zip"])
                    partial aggregation over (ca_city, ca_zip)
                        semijoin (REPLICATED):
                            join (INNER, REPLICATED):
                                join (INNER, PARTITIONED):
                                    remote exchange (REPARTITION, HASH, ["ws_bill_customer_sk"])
                                        join (INNER, REPLICATED):
                                            scan web_sales
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["c_customer_sk"])
                                            join (INNER, PARTITIONED):
                                                remote exchange (REPARTITION, HASH, ["c_current_addr_sk"])
                                                    scan customer
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["ca_address_sk"])
                                                        scan customer_address
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPLICATE, BROADCAST, [])
                                        scan item
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPLICATE, BROADCAST, [])
                                    scan item
