CREATE TABLE trained_in (physician VARCHAR(255), treatment VARCHAR(255)); CREATE TABLE physician (name VARCHAR(255), employeeid VARCHAR(255)); CREATE TABLE procedures (code VARCHAR(255), cost INTEGER)
Find the physicians who are trained in a procedure that costs more than 5000.
    
SQL: SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000