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 information do you have on each sport?
assistant
SELECT * FROM Sportsinfo GROUP BY sportname;
human
How many students play each one?
assistant
SELECT COUNT( * ) FROM Sportsinfo GROUP BY sportname;
human
Also, what are the names of each sport?
assistant
SELECT sportname , COUNT( * ) FROM Sportsinfo GROUP BY sportname ;