TakeOrderedAndProject [s_store_name,sum(ss_net_profit)]
  WholeStageCodegen (15)
    HashAggregate [s_store_name,sum] [sum(UnscaledValue(ss_net_profit)),sum(ss_net_profit),sum]
      InputAdapter
        Exchange [s_store_name] #1
          WholeStageCodegen (14)
            HashAggregate [s_store_name,ss_net_profit] [sum,sum]
              Project [ss_net_profit,s_store_name]
                SortMergeJoin [s_zip,ca_zip]
                  InputAdapter
                    WholeStageCodegen (4)
                      Sort [s_zip]
                        InputAdapter
                          Exchange [s_zip] #2
                            WholeStageCodegen (3)
                              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 #3
                                                  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] #3
                                  InputAdapter
                                    BroadcastExchange #4
                                      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
                    WholeStageCodegen (13)
                      Sort [ca_zip]
                        InputAdapter
                          Exchange [ca_zip] #5
                            WholeStageCodegen (12)
                              HashAggregate [ca_zip]
                                InputAdapter
                                  Exchange [ca_zip] #6
                                    WholeStageCodegen (11)
                                      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 #7
                                              WholeStageCodegen (10)
                                                Project [ca_zip]
                                                  Filter [cnt]
                                                    HashAggregate [ca_zip,count] [count(1),ca_zip,cnt,count]
                                                      InputAdapter
                                                        Exchange [ca_zip] #8
                                                          WholeStageCodegen (9)
                                                            HashAggregate [ca_zip] [count,count]
                                                              Project [ca_zip]
                                                                SortMergeJoin [ca_address_sk,c_current_addr_sk]
                                                                  InputAdapter
                                                                    WholeStageCodegen (6)
                                                                      Sort [ca_address_sk]
                                                                        InputAdapter
                                                                          Exchange [ca_address_sk] #9
                                                                            WholeStageCodegen (5)
                                                                              Filter [ca_address_sk]
                                                                                ColumnarToRow
                                                                                  InputAdapter
                                                                                    Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_zip]
                                                                  InputAdapter
                                                                    WholeStageCodegen (8)
                                                                      Sort [c_current_addr_sk]
                                                                        InputAdapter
                                                                          Exchange [c_current_addr_sk] #10
                                                                            WholeStageCodegen (7)
                                                                              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]
