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_67 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
### Question:
What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?
### Answer:
SELECT SUM(rank) FROM table_name_67 WHERE gold > 2 AND total < 31 AND silver < 5