github.com/matrixorigin/matrixone@v1.2.0/test/distributed/cases/benchmark/tpch/03_QUERIES/q6.sql (about)

     1  use tpch;
     2  select
     3  	sum(l_extendedprice * l_discount) as revenue
     4  from
     5  	lineitem
     6  where
     7  	l_shipdate >= date '1994-01-01'
     8  	and l_shipdate < date '1994-01-01' + interval '1' year
     9  	and l_discount between 0.03 - 0.01 and 0.03 + 0.01
    10  	and l_quantity < 24;