local exchange (GATHER, SINGLE, [])
    remote exchange (GATHER, SINGLE, [])
        local exchange (GATHER, SINGLE, [])
            remote exchange (REPARTITION, HASH, ["expr_115", "expr_116"])
                final aggregation over (groupid, s_county$gid, s_state$gid_107)
                    local exchange (REPARTITION, HASH, ["groupid", "s_county$gid", "s_state$gid_107"])
                        remote exchange (REPARTITION, HASH, ["groupid", "s_county$gid", "s_state$gid_107"])
                            partial aggregation over (groupid, s_county$gid, s_state$gid_107)
                                semijoin (PARTITIONED):
                                    remote exchange (REPARTITION, HASH, ["s_state"])
                                        join (INNER, REPLICATED):
                                            join (INNER, REPLICATED):
                                                scan store_sales
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                        scan date_dim (pushdown = true)
                                            local exchange (GATHER, SINGLE, [])
                                                remote exchange (REPLICATE, BROADCAST, [])
                                                    scan store
                                    local exchange (GATHER, SINGLE, [])
                                        remote exchange (REPARTITION, HASH, ["s_state_51"])
                                            final aggregation over (s_state_51)
                                                local exchange (GATHER, SINGLE, [])
                                                    remote exchange (REPARTITION, HASH, ["s_state_51"])
                                                        partial aggregation over (s_state_51)
                                                            join (INNER, REPLICATED):
                                                                join (INNER, REPLICATED):
                                                                    scan store_sales
                                                                    local exchange (GATHER, SINGLE, [])
                                                                        remote exchange (REPLICATE, BROADCAST, [])
                                                                            scan date_dim (pushdown = true)
                                                                local exchange (GATHER, SINGLE, [])
                                                                    remote exchange (REPLICATE, BROADCAST, [])
                                                                        scan store
