CREATE TABLE video_games (gameid NUMBER, gname CLOB, gtype CLOB)
CREATE TABLE student (stuid NUMBER, lname CLOB, fname CLOB, age NUMBER, sex CLOB, major NUMBER, advisor NUMBER, city_code CLOB)
CREATE TABLE sportsinfo (stuid NUMBER, sportname CLOB, hoursperweek NUMBER, gamesplayed NUMBER, onscholarship CLOB)
CREATE TABLE plays_games (stuid NUMBER, gameid NUMBER, hours_played NUMBER)

Show all student IDs with more than total 10 hours per week on all sports played.
SELECT stuid FROM sportsinfo GROUP BY stuid HAVING SUM(hoursperweek) > 10
SELECT "stuid" FROM "sportsinfo" GROUP BY "stuid" HAVING SUM("hoursperweek") > 10