select * from sub1 where c1 < (select c3 from sub2 where sub1.c1 = sub2.c1) order by 1;

