TakeOrderedAndProject [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating,cnt1,cnt2,cnt3]
  WholeStageCodegen (15)
    HashAggregate [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating,count] [count(1),cnt1,cnt2,cnt3,count]
      InputAdapter
        Exchange [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating] #1
          WholeStageCodegen (14)
            HashAggregate [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating] [count,count]
              Project [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating]
                BroadcastHashJoin [c_current_cdemo_sk,cd_demo_sk]
                  InputAdapter
                    BroadcastExchange #2
                      WholeStageCodegen (13)
                        Project [c_current_cdemo_sk]
                          BroadcastHashJoin [c_current_addr_sk,ca_address_sk]
                            Project [c_current_cdemo_sk,c_current_addr_sk]
                              InputAdapter
                                SortMergeJoin [c_customer_sk,cs_ship_customer_sk]
                                  SortMergeJoin [c_customer_sk,ws_bill_customer_sk]
                                    SortMergeJoin [c_customer_sk,ss_customer_sk]
                                      WholeStageCodegen (2)
                                        Sort [c_customer_sk]
                                          InputAdapter
                                            Exchange [c_customer_sk] #3
                                              WholeStageCodegen (1)
                                                Filter [c_current_addr_sk,c_current_cdemo_sk]
                                                  ColumnarToRow
                                                    InputAdapter
                                                      Scan parquet default.customer [c_customer_sk,c_current_cdemo_sk,c_current_addr_sk]
                                      WholeStageCodegen (5)
                                        Sort [ss_customer_sk]
                                          InputAdapter
                                            Exchange [ss_customer_sk] #4
                                              WholeStageCodegen (4)
                                                Project [ss_customer_sk]
                                                  BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                                    Filter [ss_sold_date_sk]
                                                      ColumnarToRow
                                                        InputAdapter
                                                          Scan parquet default.store_sales [ss_sold_date_sk,ss_customer_sk]
                                                    InputAdapter
                                                      BroadcastExchange #5
                                                        WholeStageCodegen (3)
                                                          Project [d_date_sk]
                                                            Filter [d_year,d_moy,d_date_sk]
                                                              ColumnarToRow
                                                                InputAdapter
                                                                  Scan parquet default.date_dim [d_date_sk,d_year,d_moy]
                                    WholeStageCodegen (8)
                                      Sort [ws_bill_customer_sk]
                                        InputAdapter
                                          Exchange [ws_bill_customer_sk] #6
                                            WholeStageCodegen (7)
                                              Project [ws_bill_customer_sk]
                                                BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
                                                  Filter [ws_sold_date_sk]
                                                    ColumnarToRow
                                                      InputAdapter
                                                        Scan parquet default.web_sales [ws_sold_date_sk,ws_bill_customer_sk]
                                                  InputAdapter
                                                    ReusedExchange [d_date_sk] #5
                                  WholeStageCodegen (11)
                                    Sort [cs_ship_customer_sk]
                                      InputAdapter
                                        Exchange [cs_ship_customer_sk] #7
                                          WholeStageCodegen (10)
                                            Project [cs_ship_customer_sk]
                                              BroadcastHashJoin [cs_sold_date_sk,d_date_sk]
                                                Filter [cs_sold_date_sk]
                                                  ColumnarToRow
                                                    InputAdapter
                                                      Scan parquet default.catalog_sales [cs_sold_date_sk,cs_ship_customer_sk]
                                                InputAdapter
                                                  ReusedExchange [d_date_sk] #5
                            InputAdapter
                              BroadcastExchange #8
                                WholeStageCodegen (12)
                                  Project [ca_address_sk]
                                    Filter [ca_state,ca_address_sk]
                                      ColumnarToRow
                                        InputAdapter
                                          Scan parquet default.customer_address [ca_address_sk,ca_state]
                  Filter [cd_demo_sk]
                    ColumnarToRow
                      InputAdapter
                        Scan parquet default.customer_demographics [cd_demo_sk,cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating]
