Task: Text to Code
Input (English): Step 1: For each row in station table, find the corresponding rows in trip table.
Step 2: find each value of start_station_id in the results of step 1 along with the average duration of the corresponding rows to each value
Output (English): SELECT T1.name , Avg ( T2.duration ) FROM station AS T1 JOIN trip AS T2 GROUP BY T2.start_station_id