local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        join (INNER, PARTITIONED):
            remote exchange (REPARTITION, HASH, ["c_current_addr_sk"])
                join (INNER, PARTITIONED):
                    remote exchange (REPARTITION, HASH, ["c_customer_sk"])
                        scan customer
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["ss_customer_sk"])
                            final aggregation over (ca_address_sk, ca_city, ss_customer_sk, ss_ticket_number)
                                local exchange (GATHER, SINGLE, [])
                                    partial aggregation over (ca_address_sk, ca_city, ss_customer_sk, ss_ticket_number)
                                        join (INNER, PARTITIONED):
                                            remote exchange (REPARTITION, HASH, ["ca_address_sk"])
                                                scan customer_address
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["ss_addr_sk"])
                                                    join (INNER, REPLICATED):
                                                        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 store
                                                        local exchange (GATHER, SINGLE, [])
                                                            remote exchange (REPLICATE, BROADCAST, [])
                                                                scan household_demographics
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPARTITION, HASH, ["ca_address_sk_32"])
                    scan customer_address
