Question: Find the names of females who are friends with Zach
Schema: create table personfriend (name varchar, friend varchar, PRIMARY KEY (name)); create table person (name varchar, gender varchar, PRIMARY KEY (name))
SQL: select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'zach' and t1.gender = 'female'