local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        cross join:
            join (LEFT, REPLICATED):
                join (INNER, REPLICATED):
                    final hashaggregation over (ca_state, wr_returning_customer_sk)
                        local exchange (GATHER, SINGLE, [])
                            remote exchange (REPARTITION, HASH, ["ca_state", "wr_returning_customer_sk"])
                                partial hashaggregation over (ca_state, wr_returning_customer_sk)
                                    join (INNER, PARTITIONED):
                                        remote exchange (REPARTITION, HASH, ["wr_returning_addr_sk"])
                                            join (INNER, REPLICATED):
                                                scan web_returns
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                        scan date_dim
                                        local exchange (GATHER, SINGLE, [])
                                            remote exchange (REPARTITION, HASH, ["ca_address_sk"])
                                                scan customer_address
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPLICATE, BROADCAST, [])
                            join (INNER, REPLICATED):
                                scan customer
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPLICATE, BROADCAST, [])
                                        scan customer_address
                local exchange (GATHER, SINGLE, [])
                    remote exchange (REPLICATE, BROADCAST, [])
                        final hashaggregation over (ca_state_84)
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["ca_state_84"])
                                    partial hashaggregation over (ca_state_84)
                                        final hashaggregation over (ca_state_84, wr_returning_customer_sk_31)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["ca_state_84", "wr_returning_customer_sk_31"])
                                                    partial hashaggregation over (ca_state_84, wr_returning_customer_sk_31)
                                                        join (INNER, PARTITIONED):
                                                            remote exchange (REPARTITION, HASH, ["wr_returning_addr_sk_34"])
                                                                join (INNER, REPLICATED):
                                                                    scan web_returns
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                                            scan date_dim
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPARTITION, HASH, ["ca_address_sk_76"])
                                                                    scan customer_address
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPLICATE, BROADCAST, [])
                    single hashaggregation over ()
                        values (1 rows)
