CREATE TABLE personfriend (name CLOB, friend CLOB, year NUMBER)
CREATE TABLE person (name CLOB, age NUMBER, city CLOB, gender CLOB, job CLOB)

What are the names of all friends who are from New York?
SELECT T2.name FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'
SELECT "T2"."name" FROM "person" "T1" JOIN "personfriend" "T2" ON "T1"."name" = "T2"."friend" WHERE "T1"."city" = 'new york city'