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_59 (total INTEGER, rank VARCHAR, gold VARCHAR)
### Question:
Which Total has a Rank of 17, and a Gold larger than 0?
### Answer:
SELECT AVG(total) FROM table_name_59 WHERE rank = "17" AND gold > 0