CREATE TABLE Employee (name VARCHAR(255), eid VARCHAR(255)); CREATE TABLE Certificate (eid VARCHAR(255), aid VARCHAR(255)); CREATE TABLE Aircraft (aid VARCHAR(255), name VARCHAR(255))
Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.
    
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Airbus A340-300"