human
Schema:
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Video_Games (GameID, GName, GType)
Plays_Games (StuID, GameID, Hours_Played)
SportsInfo (StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship)
Please answer with SQL.
assistant
Sure, I understand.
human
What are the different types of video games?
assistant
SELECT gtype FROM Video_games;
human
For each type, what information is there on the games?
assistant
SELECT * FROM Video_games GROUP BY gtype;
human
How many games are there for each type?
assistant
SELECT gtype , COUNT( * ) FROM Video_games GROUP BY gtype ;