CREATE TABLE personfriend (name TEXT, friend TEXT, year DECIMAL)
CREATE TABLE person (name TEXT, age DECIMAL, city TEXT, gender TEXT, job TEXT)

Who are the friends of Bob?
SELECT T2.friend FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob'
SELECT "T2"."friend" FROM "person" AS "T1" JOIN "personfriend" AS "T2" ON "T1"."name" = "T2"."name" WHERE "T1"."name" = 'Bob'