TakeOrderedAndProject [d_year,sum_agg,brand_id,brand]
  WholeStageCodegen (4)
    HashAggregate [d_year,i_brand,i_brand_id,sum] [sum(UnscaledValue(ss_net_profit)),brand_id,brand,sum_agg,sum]
      InputAdapter
        Exchange [d_year,i_brand,i_brand_id] #1
          WholeStageCodegen (3)
            HashAggregate [d_year,i_brand,i_brand_id,ss_net_profit] [sum,sum]
              Project [d_year,ss_net_profit,i_brand_id,i_brand]
                BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                  Project [ss_net_profit,ss_sold_date_sk,i_brand_id,i_brand]
                    BroadcastHashJoin [ss_item_sk,i_item_sk]
                      Filter [ss_item_sk]
                        ColumnarToRow
                          InputAdapter
                            Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_net_profit,ss_sold_date_sk]
                              SubqueryBroadcast [d_date_sk] #1
                                BroadcastExchange #2
                                  WholeStageCodegen (1)
                                    Project [d_date_sk,d_year]
                                      Filter [d_moy,d_date_sk]
                                        ColumnarToRow
                                          InputAdapter
                                            Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_moy]
                      InputAdapter
                        BroadcastExchange #3
                          WholeStageCodegen (1)
                            Project [i_item_sk,i_brand_id,i_brand]
                              Filter [i_manufact_id,i_item_sk]
                                ColumnarToRow
                                  InputAdapter
                                    Scan parquet spark_catalog.default.item [i_item_sk,i_brand_id,i_brand,i_manufact_id]
                  InputAdapter
                    ReusedExchange [d_date_sk,d_year] #2
