SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid WHERE T2.distance  >  5000 GROUP BY T1.aid ORDER BY count(*)  >=  5
Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.
SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY count ( * ) > = 5
select t2 . name from certificate as t1 join aircraft as t2 on t2 . aid = t1 . aid where t2 . distance > value group by t1 . aid order by count ( * ) > = value
Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate .