CREATE TABLE Plays_games (gameid VARCHAR)
CREATE TABLE Video_games (gameid VARCHAR)

Show all game names played by at least 1000 hours.
SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING SUM(hours_played) >= 1000
SELECT "gname" FROM "Plays_games" AS "T1" JOIN "Video_games" AS "T2" ON "T1"."gameid" = "T2"."gameid" GROUP BY "T1"."gameid" HAVING SUM("hours_played") >= 1000