This script is in:
- Postgres: tables_data_distribution_statistics
- SQL Server: tables_data_distribution_statistics
select competition_country, count(distinct season_name) seasons
from matches m
group by competition_country
order by seasons DESC;
select competition_country, count(distinct competition_name) competitions
from matches m
group by competition_country
order by competitions DESC;
select distinct competition_country, season_name
from matches m
order by competition_country;
select distinct competition_country, season_name
from matches m
order by season_name;
select competition_country, competition_name, season_name, count(*) matches
group by competition_country, competition_name, season_name
order by season_name DESC;