local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        cross join:
            join (LEFT, REPLICATED):
                join (INNER, REPLICATED):
                    final aggregation over (ca_state, cr_returning_customer_sk)
                        local exchange (GATHER, SINGLE, [])
                            remote exchange (REPARTITION, HASH, ["ca_state", "cr_returning_customer_sk"])
                                partial aggregation over (ca_state, cr_returning_customer_sk)
                                    join (INNER, REPLICATED):
                                        join (INNER, REPLICATED):
                                            scan catalog_returns
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan date_dim
                                        local exchange (GATHER, SINGLE, [])
                                            remote exchange (REPLICATE, BROADCAST, [])
                                                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 aggregation over (ca_state_93)
                            local exchange (GATHER, SINGLE, [])
                                remote exchange (REPARTITION, HASH, ["ca_state_93"])
                                    partial aggregation over (ca_state_93)
                                        final aggregation over (ca_state_93, cr_returning_customer_sk_37)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPARTITION, HASH, ["ca_state_93", "cr_returning_customer_sk_37"])
                                                    partial aggregation over (ca_state_93, cr_returning_customer_sk_37)
                                                        join (INNER, REPLICATED):
                                                            join (INNER, REPLICATED):
                                                                scan catalog_returns
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                                        scan date_dim
                                                            local exchange (GATHER, SINGLE, [])
                                                                remote exchange (REPLICATE, BROADCAST, [])
                                                                    scan customer_address
            local exchange (GATHER, SINGLE, [])
                remote exchange (REPLICATE, BROADCAST, [])
                    single aggregation over ()
                        values (1 rows)
