text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE captain (name VARCHAR, rank VARCHAR)
  ### Question:
  Find the name of captains whose rank are either Midshipman or Lieutenant.
  ### Answer:
  SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant'