CREATE TABLE flight (flno DECIMAL, origin TEXT, destination TEXT, distance DECIMAL, departure_date TIME, arrival_date TIME, price DECIMAL, aid DECIMAL)
CREATE TABLE employee (eid DECIMAL, name TEXT, salary DECIMAL)
CREATE TABLE aircraft (aid DECIMAL, name TEXT, distance DECIMAL)
CREATE TABLE certificate (eid DECIMAL, aid DECIMAL)

What is the name of each aircraft and how many flights does each one complete?
SELECT T2.name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid
SELECT "T2"."name", COUNT(*) FROM "flight" AS "T1" JOIN "aircraft" AS "T2" ON "T1"."aid" = "T2"."aid" GROUP BY "T1"."aid"