TakeOrderedAndProject [item_id,sr_item_qty,sr_dev,cr_item_qty,cr_dev,wr_item_qty,wr_dev,average]
  WholeStageCodegen (18)
    Project [item_id,sr_item_qty,cr_item_qty,wr_item_qty]
      BroadcastHashJoin [item_id,item_id]
        Project [item_id,sr_item_qty,cr_item_qty]
          BroadcastHashJoin [item_id,item_id]
            HashAggregate [i_item_id,sum] [sum(sr_return_quantity),item_id,sr_item_qty,sum]
              InputAdapter
                Exchange [i_item_id] #1
                  WholeStageCodegen (5)
                    HashAggregate [i_item_id,sr_return_quantity] [sum,sum]
                      Project [sr_return_quantity,i_item_id]
                        BroadcastHashJoin [sr_item_sk,i_item_sk]
                          Project [sr_item_sk,sr_return_quantity]
                            BroadcastHashJoin [sr_returned_date_sk,d_date_sk]
                              Filter [sr_item_sk]
                                ColumnarToRow
                                  InputAdapter
                                    Scan parquet spark_catalog.default.store_returns [sr_item_sk,sr_return_quantity,sr_returned_date_sk]
                                      SubqueryBroadcast [d_date_sk] #1
                                        BroadcastExchange #2
                                          WholeStageCodegen (3)
                                            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 (2)
                                                      Project [d_date]
                                                        BroadcastHashJoin [d_week_seq,d_week_seq]
                                                          ColumnarToRow
                                                            InputAdapter
                                                              Scan parquet spark_catalog.default.date_dim [d_date,d_week_seq]
                                                          InputAdapter
                                                            BroadcastExchange #4
                                                              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 #5
                              WholeStageCodegen (4)
                                Filter [i_item_sk,i_item_id]
                                  ColumnarToRow
                                    InputAdapter
                                      Scan parquet spark_catalog.default.item [i_item_sk,i_item_id]
            InputAdapter
              BroadcastExchange #6
                WholeStageCodegen (11)
                  HashAggregate [i_item_id,sum] [sum(cr_return_quantity),item_id,cr_item_qty,sum]
                    InputAdapter
                      Exchange [i_item_id] #7
                        WholeStageCodegen (10)
                          HashAggregate [i_item_id,cr_return_quantity] [sum,sum]
                            Project [cr_return_quantity,i_item_id]
                              BroadcastHashJoin [cr_item_sk,i_item_sk]
                                Project [cr_item_sk,cr_return_quantity]
                                  BroadcastHashJoin [cr_returned_date_sk,d_date_sk]
                                    Filter [cr_item_sk]
                                      ColumnarToRow
                                        InputAdapter
                                          Scan parquet spark_catalog.default.catalog_returns [cr_item_sk,cr_return_quantity,cr_returned_date_sk]
                                            ReusedSubquery [d_date_sk] #1
                                    InputAdapter
                                      ReusedExchange [d_date_sk] #2
                                InputAdapter
                                  ReusedExchange [i_item_sk,i_item_id] #5
        InputAdapter
          BroadcastExchange #8
            WholeStageCodegen (17)
              HashAggregate [i_item_id,sum] [sum(wr_return_quantity),item_id,wr_item_qty,sum]
                InputAdapter
                  Exchange [i_item_id] #9
                    WholeStageCodegen (16)
                      HashAggregate [i_item_id,wr_return_quantity] [sum,sum]
                        Project [wr_return_quantity,i_item_id]
                          BroadcastHashJoin [wr_item_sk,i_item_sk]
                            Project [wr_item_sk,wr_return_quantity]
                              BroadcastHashJoin [wr_returned_date_sk,d_date_sk]
                                Filter [wr_item_sk]
                                  ColumnarToRow
                                    InputAdapter
                                      Scan parquet spark_catalog.default.web_returns [wr_item_sk,wr_return_quantity,wr_returned_date_sk]
                                        ReusedSubquery [d_date_sk] #1
                                InputAdapter
                                  ReusedExchange [d_date_sk] #2
                            InputAdapter
                              ReusedExchange [i_item_sk,i_item_id] #5
