Select * from lineitem, orders where o_custkey < 1000 and l_partkey < 10000 and l_orderkey = o_orderkey order by l_orderkey, l_linenumber;