CREATE TABLE Student (lname VARCHAR2, sex VARCHAR2, StuID VARCHAR2)
CREATE TABLE Video_games (GameID VARCHAR2, Gname VARCHAR2)
CREATE TABLE Plays_games (StuID VARCHAR2, GameID VARCHAR2)

Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.
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")
WITH "_u_0" AS (SELECT ARRAY_AGG("StuID") AS "", "T2"."Gname" AS "_u_1" FROM "Plays_games" "T1" JOIN "Video_games" "T2" ON "T1"."GameID" = "T2"."GameID" GROUP BY "T2"."Gname") SELECT "lname", "sex" FROM "Student" LEFT JOIN "_u_0" "_u_0" ON "Call of Destiny" = "_u_0"."_u_1" WHERE ARRAY_ANY("_u_0"."", "_x" -> "StuID" = "_x")