TakeOrderedAndProject [s_store_name,sum(ss_net_profit)]
  WholeStageCodegen (9)
    HashAggregate [s_store_name,sum] [sum(UnscaledValue(ss_net_profit)),sum(ss_net_profit),sum]
      InputAdapter
        Exchange [s_store_name] #1
          WholeStageCodegen (8)
            HashAggregate [s_store_name,ss_net_profit] [sum,sum]
              Project [ss_net_profit,s_store_name]
                BroadcastHashJoin [s_zip,ca_zip]
                  Project [ss_net_profit,s_store_name,s_zip]
                    BroadcastHashJoin [ss_store_sk,s_store_sk]
                      Project [ss_store_sk,ss_net_profit]
                        BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                          Filter [ss_store_sk]
                            ColumnarToRow
                              InputAdapter
                                Scan parquet spark_catalog.default.store_sales [ss_store_sk,ss_net_profit,ss_sold_date_sk]
                                  SubqueryBroadcast [d_date_sk] #1
                                    BroadcastExchange #2
                                      WholeStageCodegen (1)
                                        Project [d_date_sk]
                                          Filter [d_qoy,d_year,d_date_sk]
                                            ColumnarToRow
                                              InputAdapter
                                                Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_qoy]
                          InputAdapter
                            ReusedExchange [d_date_sk] #2
                      InputAdapter
                        BroadcastExchange #3
                          WholeStageCodegen (2)
                            Filter [s_store_sk,s_zip]
                              ColumnarToRow
                                InputAdapter
                                  Scan parquet spark_catalog.default.store [s_store_sk,s_store_name,s_zip]
                  InputAdapter
                    BroadcastExchange #4
                      WholeStageCodegen (7)
                        HashAggregate [ca_zip]
                          InputAdapter
                            Exchange [ca_zip] #5
                              WholeStageCodegen (6)
                                HashAggregate [ca_zip]
                                  BroadcastHashJoin [ca_zip,ca_zip]
                                    Project [ca_zip]
                                      Filter [ca_zip]
                                        ColumnarToRow
                                          InputAdapter
                                            Scan parquet spark_catalog.default.customer_address [ca_zip]
                                    InputAdapter
                                      BroadcastExchange #6
                                        WholeStageCodegen (5)
                                          Project [ca_zip]
                                            Filter [cnt]
                                              HashAggregate [ca_zip,count] [count(1),ca_zip,cnt,count]
                                                InputAdapter
                                                  Exchange [ca_zip] #7
                                                    WholeStageCodegen (4)
                                                      HashAggregate [ca_zip] [count,count]
                                                        Project [ca_zip]
                                                          BroadcastHashJoin [ca_address_sk,c_current_addr_sk]
                                                            Filter [ca_address_sk]
                                                              ColumnarToRow
                                                                InputAdapter
                                                                  Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_zip]
                                                            InputAdapter
                                                              BroadcastExchange #8
                                                                WholeStageCodegen (3)
                                                                  Project [c_current_addr_sk]
                                                                    Filter [c_preferred_cust_flag,c_current_addr_sk]
                                                                      ColumnarToRow
                                                                        InputAdapter
                                                                          Scan parquet spark_catalog.default.customer [c_current_addr_sk,c_preferred_cust_flag]
