How many trips did not end in San Francisco?
SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city != "San Francisco"
trips that did not end in San Francisco refers to filtering out trips where the end station's city is not San Francisco;