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
What is the name of the country that participated in the greatest number of tournaments?
assistant
SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY COUNT( * ) DESC LIMIT 1;
human
What about the name of the country that participated in the least number of tournaments?
assistant
SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY COUNT( * ) asc LIMIT 1;
human
What were the competition types of all the competitions Russia participated in?
assistant
SELECT Competition_type FROM competition WHERE country = "Russia" ;