Task: Text to Code
Input (English): SQL: SELECT name , distance FROM aircraft WHERE distance BETWEEN 8430 AND 5000
Feedback: Ensure count of airline id in certificate table is minimum 5 , find all whose distance above 5000.
Output (English): 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