select name from student a where a.sex = "Man" and (select count(id) from student b where b.age < a.age and b.sex = "Man") < 10 and (select count(id) from student c where c.score > a.score) < 5 select name from student a where a.sex = "Woman" and (select count(name) from student b where b.age < a.age and b.sex = "Woman") < 10 and (select count(name) from student c where c.score > a.score) < 5