Task: Text to Code
Input (English): Step 1: For each row in station table, find the corresponding rows in trip table.
Step 2: find the average duration in the results of step 1 whose city not equals Palo Alto
Output (English): SELECT Avg ( T2.duration ) FROM station AS T1 JOIN trip AS T2 WHERE T1.city ! = "Palo Alto"