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

What are all the friends of Alice who are female?
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" "T1" JOIN "personfriend" "T2" ON "T1"."name" = "T2"."friend" AND "T2"."name" = 'Alice' WHERE "T1"."gender" = 'female'