select c from a where a=10 and b<=5000 order by a, b desc limit :nlimit;
