Task: Text to Code
Input (English): How many trips did not end in San Francisco?
Output (English): SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city != "San Francisco"