Question: List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.
Schema: create table operate_company (id varchar, principal_activities varchar, PRIMARY KEY (id)); create table flight (id varchar, PRIMARY KEY (id))
SQL: select t2.pilot from operate_company as t1 join flight as t2 on t1.id = t2.company_id where t1.principal_activities = 'cargo' intersect select t2.pilot from operate_company as t1 join flight as t2 on t1.id = t2.company_id where t1.principal_activities = 'catering services'