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 table_name_64 (total INTEGER, rank VARCHAR)
  ### Question:
  What is the maximum total medals when the rank is 8?
  ### Answer:
  SELECT MAX(total) FROM table_name_64 WHERE rank = "8"