Instruct: What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?
Output: SELECT SUM Rank FROM table WHERE Gold > 2 AND Total < 31 AND Silver < 5