CREATE TABLE flight (Id VARCHAR)
CREATE TABLE operate_company (id VARCHAR, name VARCHAR)

What are the ids and names of the companies that operated more than one flight?
SELECT T1.id, T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY T1.id HAVING COUNT(*) > 1
SELECT "T1"."id", "T1"."name" FROM "operate_company" AS "T1" JOIN "flight" AS "t2" ON "T1"."id" = "T2"."company_id" GROUP BY "T1"."id" HAVING COUNT(*) > 1