TakeOrderedAndProject [item_id,ss_item_rev,ss_dev,cs_item_rev,cs_dev,ws_item_rev,ws_dev,average]
  WholeStageCodegen (15)
    Project [item_id,ss_item_rev,cs_item_rev,ws_item_rev]
      BroadcastHashJoin [item_id,item_id,ss_item_rev,ws_item_rev,cs_item_rev]
        Project [item_id,ss_item_rev,cs_item_rev]
          BroadcastHashJoin [item_id,item_id,ss_item_rev,cs_item_rev]
            Filter [ss_item_rev]
              HashAggregate [i_item_id,sum] [sum(UnscaledValue(ss_ext_sales_price)),item_id,ss_item_rev,sum]
                InputAdapter
                  Exchange [i_item_id] #1
                    WholeStageCodegen (4)
                      HashAggregate [i_item_id,ss_ext_sales_price] [sum,sum]
                        Project [ss_ext_sales_price,i_item_id]
                          BroadcastHashJoin [ss_item_sk,i_item_sk]
                            Project [ss_item_sk,ss_ext_sales_price]
                              BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                Filter [ss_item_sk]
                                  ColumnarToRow
                                    InputAdapter
                                      Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_ext_sales_price,ss_sold_date_sk]
                                        SubqueryBroadcast [d_date_sk] #1
                                          BroadcastExchange #2
                                            WholeStageCodegen (2)
                                              Project [d_date_sk]
                                                BroadcastHashJoin [d_date,d_date]
                                                  Filter [d_date_sk]
                                                    ColumnarToRow
                                                      InputAdapter
                                                        Scan parquet spark_catalog.default.date_dim [d_date_sk,d_date]
                                                  InputAdapter
                                                    BroadcastExchange #3
                                                      WholeStageCodegen (1)
                                                        Project [d_date]
                                                          Filter [d_week_seq]
                                                            ReusedSubquery [d_week_seq] #2
                                                            ColumnarToRow
                                                              InputAdapter
                                                                Scan parquet spark_catalog.default.date_dim [d_date,d_week_seq]
                                                                  Subquery #2
                                                                    WholeStageCodegen (1)
                                                                      Project [d_week_seq]
                                                                        Filter [d_date]
                                                                          ColumnarToRow
                                                                            InputAdapter
                                                                              Scan parquet spark_catalog.default.date_dim [d_date,d_week_seq]
                                InputAdapter
                                  ReusedExchange [d_date_sk] #2
                            InputAdapter
                              BroadcastExchange #4
                                WholeStageCodegen (3)
                                  Filter [i_item_sk,i_item_id]
                                    ColumnarToRow
                                      InputAdapter
                                        Scan parquet spark_catalog.default.item [i_item_sk,i_item_id]
            InputAdapter
              BroadcastExchange #5
                WholeStageCodegen (9)
                  Filter [cs_item_rev]
                    HashAggregate [i_item_id,sum] [sum(UnscaledValue(cs_ext_sales_price)),item_id,cs_item_rev,sum]
                      InputAdapter
                        Exchange [i_item_id] #6
                          WholeStageCodegen (8)
                            HashAggregate [i_item_id,cs_ext_sales_price] [sum,sum]
                              Project [cs_ext_sales_price,i_item_id]
                                BroadcastHashJoin [cs_item_sk,i_item_sk]
                                  Project [cs_item_sk,cs_ext_sales_price]
                                    BroadcastHashJoin [cs_sold_date_sk,d_date_sk]
                                      Filter [cs_item_sk]
                                        ColumnarToRow
                                          InputAdapter
                                            Scan parquet spark_catalog.default.catalog_sales [cs_item_sk,cs_ext_sales_price,cs_sold_date_sk]
                                              ReusedSubquery [d_date_sk] #1
                                      InputAdapter
                                        ReusedExchange [d_date_sk] #2
                                  InputAdapter
                                    ReusedExchange [i_item_sk,i_item_id] #4
        InputAdapter
          BroadcastExchange #7
            WholeStageCodegen (14)
              Filter [ws_item_rev]
                HashAggregate [i_item_id,sum] [sum(UnscaledValue(ws_ext_sales_price)),item_id,ws_item_rev,sum]
                  InputAdapter
                    Exchange [i_item_id] #8
                      WholeStageCodegen (13)
                        HashAggregate [i_item_id,ws_ext_sales_price] [sum,sum]
                          Project [ws_ext_sales_price,i_item_id]
                            BroadcastHashJoin [ws_item_sk,i_item_sk]
                              Project [ws_item_sk,ws_ext_sales_price]
                                BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
                                  Filter [ws_item_sk]
                                    ColumnarToRow
                                      InputAdapter
                                        Scan parquet spark_catalog.default.web_sales [ws_item_sk,ws_ext_sales_price,ws_sold_date_sk]
                                          ReusedSubquery [d_date_sk] #1
                                  InputAdapter
                                    ReusedExchange [d_date_sk] #2
                              InputAdapter
                                ReusedExchange [i_item_sk,i_item_id] #4
