text: select
  	sum(l_extendedprice* (1 - l_discount)) as revenue
  from
  	lineitem,
  	part
  where
  	p_partkey = l_partkey
  	and (l_shipmode = 'AIR' or l_shipmode = 'AIR REG')
  	and l_shipinstruct = 'DELIVER IN PERSON'
  	and ((
  		p_brand = 'Brand#12'
  		and (p_container = 'SM CASE' or p_container = 'SM BOX' or p_container = 'SM PACK' or p_container = 'SM PKG')
  		and l_quantity >= 1 and l_quantity <= 1 + 10
  		and p_size between 1 and 5
  	)
  	or
  	(
  		p_brand = 'Brand#23'
  		and (p_container = 'MED BAG' or p_container = 'MED BOX' or p_container = 'MED PKG' or p_container = 'MED PACK')
  		and l_quantity >= 10 and l_quantity <= 10 + 10
  		and p_size between 1 and 10
  	)
  	or
  	(
  		p_brand = 'Brand#34'
  		and (p_container = 'LG CASE' or p_container = 'LG BOX' or p_container = 'LG PACK' or p_container = 'LG PKG')
  		and l_quantity >= 20 and l_quantity <= 20 + 10
  		and p_size between 1 and 15
  	));
  