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
WHich country had the most competitions?
assistant
SELECT country FROM competition GROUP BY country ORDER BY COUNT( * ) DESC LIMIT 1;
human
What year did most competitions occur?
assistant
SELECT year FROM competition GROUP BY year ORDER BY COUNT( * ) DESC LIMIT 1;
human
What about the most common type?
assistant
SELECT competition_type FROM competition GROUP BY competition_type ORDER BY COUNT( * ) DESC LIMIT 1 ;