Task: Text to Code
Input (English): SQL: SELECT Pilot_name , Count ( * ) FROM pilot GROUP BY Pilot_name
Feedback: Make sure to count number of pilot's records too .
Output (English): SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name