Context: CREATE TABLE ship (name VARCHAR, CLASS VARCHAR, ship_id VARCHAR); CREATE TABLE captain (name VARCHAR, CLASS VARCHAR, ship_id VARCHAR)
Question: what are the names and classes of the ships that do not have any captain yet?
Answer: SELECT name, CLASS FROM ship WHERE NOT ship_id IN (SELECT ship_id FROM captain)