Database: ship_1
Question: What are the names and flags of ships that do not have a captain with the rank of Midshipman?
SQL: select name ,  flag from ship where ship_id not in (select ship_id from captain where rank  =  'midshipman')