Count the number of trips that did not end in San Francisco city.
select count(*) from trip as t1 join station as t2 on t1.end_station_id = t2.id where t2.city != "San Francisco"