Task: Text to Code
Input (English): Step 1: For each row in airports table, find the corresponding rows in routes table.
Step 2: for each value of dst_apid in the results of step 1, calculate number of rows.
Step 3: show each value of dst_apid in the results of step 1 along with the number of rows ordered descending by the results of step 2
Output (English): SELECT T2.name , Count ( * ) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid GROUP BY T1.dst_apid ORDER BY Count ( * ) Desc