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"