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 (rank VARCHAR, CLASS VARCHAR)
  ### Question:
  Find the captain rank that has some captains in both Cutter and Armed schooner classes.
  ### Answer:
  SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner'