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