Question: Flags of ships not steered by any captain with Midshipman rank?
SQL: SELECT flag FROM ship WHERE ship_id NOT IN  ( SELECT ship_id FROM captain WHERE rank   =   'Midshipman' )