local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        cross join:
            join (LEFT, PARTITIONED):
                remote exchange (REPARTITION, HASH, ["ca_state"])
                    join (INNER, PARTITIONED):
                        remote exchange (REPARTITION, HASH, ["wr_returning_customer_sk"])
                            final aggregation over (ca_state, wr_returning_customer_sk)
                                local exchange (GATHER, SINGLE, [])
                                    remote exchange (REPARTITION, HASH, ["ca_state", "wr_returning_customer_sk"])
                                        partial aggregation over (ca_state, wr_returning_customer_sk)
                                            join (INNER, PARTITIONED):
                                                remote exchange (REPARTITION, HASH, ["ca_address_sk"])
                                                    scan customer_address
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["wr_returning_addr_sk"])
                                                        join (INNER, PARTITIONED):
                                                            remote exchange (REPARTITION, HASH, ["wr_returned_date_sk"])
                                                                scan web_returns
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPARTITION, HASH, ["d_date_sk"])
                                                                    scan date_dim (pushdown = true)
                        local exchange (GATHER, SINGLE, [])
                            remote exchange (REPARTITION, HASH, ["c_customer_sk"])
                                join (INNER, REPLICATED):
                                    scan customer
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPLICATE, BROADCAST, [])
                                            scan customer_address (pushdown = true)
                final aggregation over (ca_state_96)
                    local exchange (GATHER, SINGLE, [])
                        remote exchange (REPARTITION, HASH, ["ca_state_96"])
                            partial aggregation over (ca_state_96)
                                final aggregation over (ca_state_96, wr_returning_customer_sk_41)
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["ca_state_96", "wr_returning_customer_sk_41"])
                                            partial aggregation over (ca_state_96, wr_returning_customer_sk_41)
                                                join (INNER, PARTITIONED):
                                                    remote exchange (REPARTITION, HASH, ["ca_address_sk_88"])
                                                        scan customer_address
                                                    local exchange (GATHER, SINGLE, [])
                                                        remote exchange (REPARTITION, HASH, ["wr_returning_addr_sk_44"])
                                                            join (INNER, PARTITIONED):
                                                                remote exchange (REPARTITION, HASH, ["wr_returned_date_sk_34"])
                                                                    scan web_returns
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPARTITION, HASH, ["d_date_sk_59"])
                                                                        scan date_dim (pushdown = true)
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPLICATE, BROADCAST, [])
                    single aggregation over ()
                        values (1 rows)
