select top 10 * from (select top 40 * from a order by id asc