Sort: revenue DESC NULLS FIRST
  Projection: customer.c_custkey, customer.c_name, SUM(lineitem.l_extendedprice * Int64(1) - lineitem.l_discount) AS revenue, customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
    Aggregate: groupBy=[[customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_phone, nation.n_name, customer.c_address, customer.c_comment]], aggr=[[SUM(CAST(lineitem.l_extendedprice AS Decimal128(38, 4)) * CAST(Decimal128(Some(100),23,2) - CAST(lineitem.l_discount AS Decimal128(23, 2)) AS Decimal128(38, 4))) AS SUM(lineitem.l_extendedprice * Int64(1) - lineitem.l_discount)]]
      Inner Join: customer.c_nationkey = nation.n_nationkey
        Inner Join: orders.o_orderkey = lineitem.l_orderkey
          Inner Join: customer.c_custkey = orders.o_custkey
            TableScan: customer projection=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment]
            Filter: orders.o_orderdate >= Date32("8674") AND orders.o_orderdate < Date32("8766")
              TableScan: orders projection=[o_orderkey, o_custkey, o_orderdate]
          Filter: lineitem.l_returnflag = Utf8("R")
            TableScan: lineitem projection=[l_orderkey, l_extendedprice, l_discount, l_returnflag]
        TableScan: nation projection=[n_nationkey, n_name]