Question: How many people in New York City have friends?
SQL: select count ( * )  from Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE Person.city = 'new york city'