Question: What are the names and types of the companies that have ever operated a flight?
Schema: create table operate_company (name varchar, type varchar, id varchar, PRIMARY KEY (name)); create table flight (id varchar, PRIMARY KEY (id))
SQL: select t1.name, t1.type from operate_company as t1 join flight as t2 on t1.id = t2.company_id