For each country and airline name, how many routes are there?
create table airlines (country varchar, name varchar, alid varchar, PRIMARY KEY (country)); create table routes (alid varchar, PRIMARY KEY (alid))
select t1.country, t1.name, count(*) from airlines as t1 join routes as t2 on t1.alid = t2.alid group by t1.country, t1.name