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

Find the female friends of Alice.
SELECT T2.friend FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'
SELECT "T2"."friend" FROM "person" AS "T1" JOIN "personfriend" AS "T2" ON "T1"."name" = "T2"."friend" AND "T2"."name" = 'Alice' WHERE "T1"."gender" = 'female'