human
Schema:
club (Club_ID, name, Region, Start_year)
club_rank (Rank, Club_ID, Gold, Silver, Bronze, Total)
player (Player_ID, name, Position, Club_ID, Apps, Tries, Goals, Points)
competition (Competition_ID, Year, Competition_type, Country)
competition_result (Competition_ID, Club_ID_1, Club_ID_2, Score)
Please answer with SQL.
assistant
Sure, I understand.
human
How many clubs have players with the position 'Right Wing'?
assistant
SELECT COUNT( * ) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = 'Right Wing';
human
How many total players are there?
assistant
SELECT COUNT( * ) FROM player;
human
Can you list all the players?
assistant
SELECT * FROM player;
human
How many positions are there in total?
assistant
SELECT COUNT( DISTINCT Position ) FROM player ;