Question: Show student ids who are female and play football.
Schema: create table sportsinfo (stuid varchar, sex varchar, sportname varchar, PRIMARY KEY (stuid)); create table student (stuid varchar, sex varchar, sportname varchar, PRIMARY KEY (stuid))
SQL: select stuid from student where sex = 'f' intersect select stuid from sportsinfo where sportname = "football"