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