Show aircraft names and number of flights for each aircraft.
create table aircraft (name varchar, aid varchar, PRIMARY KEY (name)); create table flight (aid varchar, PRIMARY KEY (aid))
select t2.name, count(*) from flight as t1 join aircraft as t2 on t1.aid = t2.aid group by t1.aid