Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE video_games ( gameid number, gname text, gtype text )
TABLE: CREATE TABLE sportsinfo ( stuid number, sportname text, hoursperweek number, gamesplayed number, onscholarship text )
TABLE: CREATE TABLE plays_games ( stuid number, gameid number, hours_played number )
TABLE: CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text )

### Question ###
Show all student ids and the number of hours played.

### Accurate SQL ###

SELECT stuid, SUM(hours_played) FROM plays_games GROUP BY stuid