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_15 (rank VARCHAR, total VARCHAR, nation VARCHAR)
  ### Question:
  Spain with a total of more than 4 medals is in what rank?
  ### Answer:
  SELECT rank FROM table_name_15 WHERE total > 4 AND nation = "spain"