This demo in demo_app_accel/q6_mod
directory implements TPC-H Query 6 modified with
extra conditions. The SQL being implemented is
select sum(l_extendedprice * l_discount) as revenue from lineitem where l_shipdate >= date '1994-01-01' and l_shipdate < date '1995-01-01' and l_discount between 0.06 - 0.01 and 0.06 + 0.01 and l_quantity < 24 and l_shipdate > l_commitdate; ;
.