TakeOrderedAndProject [avg_quarterly_sales,sum_sales,i_manufact_id]
  WholeStageCodegen (7)
    Project [i_manufact_id,sum_sales,avg_quarterly_sales]
      Filter [avg_quarterly_sales,sum_sales]
        InputAdapter
          Window [_w0,i_manufact_id]
            WholeStageCodegen (6)
              Sort [i_manufact_id]
                InputAdapter
                  Exchange [i_manufact_id] #1
                    WholeStageCodegen (5)
                      HashAggregate [i_manufact_id,d_qoy,sum] [sum(UnscaledValue(ss_sales_price)),sum_sales,_w0,sum]
                        InputAdapter
                          Exchange [i_manufact_id,d_qoy] #2
                            WholeStageCodegen (4)
                              HashAggregate [i_manufact_id,d_qoy,ss_sales_price] [sum,sum]
                                Project [i_manufact_id,ss_sales_price,d_qoy]
                                  BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                    Project [i_manufact_id,ss_sales_price,ss_sold_date_sk]
                                      BroadcastHashJoin [ss_store_sk,s_store_sk]
                                        Project [i_manufact_id,ss_store_sk,ss_sales_price,ss_sold_date_sk]
                                          BroadcastHashJoin [i_item_sk,ss_item_sk]
                                            InputAdapter
                                              BroadcastExchange #3
                                                WholeStageCodegen (1)
                                                  Project [i_item_sk,i_manufact_id]
                                                    Filter [i_category,i_class,i_brand,i_item_sk]
                                                      ColumnarToRow
                                                        InputAdapter
                                                          Scan parquet spark_catalog.default.item [i_item_sk,i_brand,i_class,i_category,i_manufact_id]
                                            Filter [ss_item_sk,ss_store_sk]
                                              ColumnarToRow
                                                InputAdapter
                                                  Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_store_sk,ss_sales_price,ss_sold_date_sk]
                                                    SubqueryBroadcast [d_date_sk] #1
                                                      BroadcastExchange #4
                                                        WholeStageCodegen (1)
                                                          Project [d_date_sk,d_qoy]
                                                            Filter [d_month_seq,d_date_sk]
                                                              ColumnarToRow
                                                                InputAdapter
                                                                  Scan parquet spark_catalog.default.date_dim [d_date_sk,d_month_seq,d_qoy]
                                        InputAdapter
                                          BroadcastExchange #5
                                            WholeStageCodegen (2)
                                              Filter [s_store_sk]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet spark_catalog.default.store [s_store_sk]
                                    InputAdapter
                                      ReusedExchange [d_date_sk,d_qoy] #4
