SELECT name ,  flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank  =  'Midshipman')
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 ' )
select name , flag from ship where ship_id not in ( select ship_id from captain where rank = value )
What are the names and flags of ships that do not have a captain with the rank of Midshipman ?