Question: Show names for all aircraft with at least two flights.
Schema: create table aircraft (name varchar, aid varchar, PRIMARY KEY (name)); create table flight (aid varchar, PRIMARY KEY (aid))
SQL: select t2.name from flight as t1 join aircraft as t2 on t1.aid = t2.aid group by t1.aid having count(*) >= 2