=== Stage 1 ===
SortShuffleWriterExec: partitioning=Hash([s_suppkey@0], 16)
  StatsExec: rows=1000000

=== Stage 2 ===
SortShuffleWriterExec: partitioning=Hash([l_suppkey@1], 16)
  FilterExec: l_shipdate@4 >= 1995-01-01 AND l_shipdate@4 <= 1996-12-31
    StatsExec: rows=600037902

=== Stage 3 ===
SortShuffleWriterExec: partitioning=Hash([l_orderkey@1], 16)
  SortMergeJoinExec: join_type=Inner, on=[(s_suppkey@0, l_suppkey@1)], projection=[s_nationkey@1, l_orderkey@2, l_extendedprice@4, l_discount@5, l_shipdate@6]
    SortExec: expr=[s_suppkey@0 ASC], preserve_partitioning=[true]
      UnresolvedShuffleExec: stage=1, partitioning: Hash([s_suppkey@0], 16)
    SortExec: expr=[l_suppkey@1 ASC], preserve_partitioning=[true]
      UnresolvedShuffleExec: stage=2, partitioning: Hash([l_suppkey@1], 16)

=== Stage 4 ===
SortShuffleWriterExec: partitioning=Hash([o_orderkey@0], 16)
  StatsExec: rows=150000000

=== Stage 5 ===
SortShuffleWriterExec: partitioning=Hash([o_custkey@4], 16)
  SortMergeJoinExec: join_type=Inner, on=[(l_orderkey@1, o_orderkey@0)], projection=[s_nationkey@0, l_extendedprice@2, l_discount@3, l_shipdate@4, o_custkey@6]
    SortExec: expr=[l_orderkey@1 ASC], preserve_partitioning=[true]
      UnresolvedShuffleExec: stage=3, partitioning: Hash([l_orderkey@1], 16)
    SortExec: expr=[o_orderkey@0 ASC], preserve_partitioning=[true]
      UnresolvedShuffleExec: stage=4, partitioning: Hash([o_orderkey@0], 16)

=== Stage 6 ===
SortShuffleWriterExec: partitioning=Hash([c_custkey@0], 16)
  StatsExec: rows=15000000

=== Stage 7 ===
SortShuffleWriterExec: partitioning=Hash([s_nationkey@0], 16)
  SortMergeJoinExec: join_type=Inner, on=[(o_custkey@4, c_custkey@0)], projection=[s_nationkey@0, l_extendedprice@1, l_discount@2, l_shipdate@3, c_nationkey@6]
    SortExec: expr=[o_custkey@4 ASC], preserve_partitioning=[true]
      UnresolvedShuffleExec: stage=5, partitioning: Hash([o_custkey@4], 16)
    SortExec: expr=[c_custkey@0 ASC], preserve_partitioning=[true]
      UnresolvedShuffleExec: stage=6, partitioning: Hash([c_custkey@0], 16)

=== Stage 8 ===
SortShuffleWriterExec: partitioning=Hash([n_nationkey@0], 16)
  FilterExec: n_name@1 = FRANCE OR n_name@1 = GERMANY
    StatsExec: rows=25

=== Stage 9 ===
SortShuffleWriterExec: partitioning=Hash([c_nationkey@3], 16)
  SortMergeJoinExec: join_type=Inner, on=[(s_nationkey@0, n_nationkey@0)], projection=[l_extendedprice@1, l_discount@2, l_shipdate@3, c_nationkey@4, n_name@6]
    SortExec: expr=[s_nationkey@0 ASC], preserve_partitioning=[true]
      UnresolvedShuffleExec: stage=7, partitioning: Hash([s_nationkey@0], 16)
    SortExec: expr=[n_nationkey@0 ASC], preserve_partitioning=[true]
      UnresolvedShuffleExec: stage=8, partitioning: Hash([n_nationkey@0], 16)

=== Stage 10 ===
SortShuffleWriterExec: partitioning=Hash([n_nationkey@0], 16)
  FilterExec: n_name@1 = GERMANY OR n_name@1 = FRANCE
    StatsExec: rows=25

=== Stage 11 ===
SortShuffleWriterExec: partitioning=Hash([supp_nation@0, cust_nation@1, l_year@2], 16)
  AggregateExec: mode=Partial, gby=[supp_nation@0 as supp_nation, cust_nation@1 as cust_nation, l_year@2 as l_year], aggr=[sum(shipping.volume)]
    ProjectionExec: expr=[n_name@0 as supp_nation, n_name@1 as cust_nation, date_part(YEAR, l_shipdate@2) as l_year, l_extendedprice@3 * (1 - l_discount@4) as volume]
      SortMergeJoinExec: join_type=Inner, on=[(c_nationkey@3, n_nationkey@0)], filter=n_name@0 = FRANCE AND n_name@1 = GERMANY OR n_name@0 = GERMANY AND n_name@1 = FRANCE, projection=[n_name@4, n_name@6, l_shipdate@2, l_extendedprice@0, l_discount@1]
        SortExec: expr=[c_nationkey@3 ASC], preserve_partitioning=[true]
          UnresolvedShuffleExec: stage=9, partitioning: Hash([c_nationkey@3], 16)
        SortExec: expr=[n_nationkey@0 ASC], preserve_partitioning=[true]
          UnresolvedShuffleExec: stage=10, partitioning: Hash([n_nationkey@0], 16)

=== Stage 12 ===
ShuffleWriterExec: partitioning: Hash([supp_nation@0, cust_nation@1, l_year@2], 16)
  ProjectionExec: expr=[supp_nation@0 as supp_nation, cust_nation@1 as cust_nation, l_year@2 as l_year, sum(shipping.volume)@3 as revenue]
    SortExec: expr=[supp_nation@0 ASC NULLS LAST, cust_nation@1 ASC NULLS LAST, l_year@2 ASC NULLS LAST], preserve_partitioning=[true]
      AggregateExec: mode=FinalPartitioned, gby=[supp_nation@0 as supp_nation, cust_nation@1 as cust_nation, l_year@2 as l_year], aggr=[sum(shipping.volume)]
        UnresolvedShuffleExec: stage=11, partitioning: Hash([supp_nation@0, cust_nation@1, l_year@2], 16)

=== Stage 13 ===
ShuffleWriterExec: partitioning: UnknownPartitioning(1)
  SortPreservingMergeExec: [supp_nation@0 ASC NULLS LAST, cust_nation@1 ASC NULLS LAST, l_year@2 ASC NULLS LAST]
    UnresolvedShuffleExec: stage=12, partitioning: Hash([supp_nation@0, cust_nation@1, l_year@2], 16)
