Find the female friends of Alice.
create table personfriend (friend varchar, name varchar, PRIMARY KEY (friend)); create table person (name varchar, gender varchar, PRIMARY KEY (name))
select t2.friend from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'alice' and t1.gender = 'female'