Question: Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.
Schema: create table plays_games (stuid varchar, gameid varchar, PRIMARY KEY (stuid)); create table student (lname varchar, sex varchar, stuid varchar, PRIMARY KEY (lname)); create table video_games (gameid varchar, gname varchar, PRIMARY KEY (gameid))
SQL: select lname, sex from student where stuid in (select t1.stuid from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid where t2.gname = "call of destiny" intersect select t1.stuid from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid where t2.gname = "works of widenius")