Which Total has a Rank of 17, and a Gold larger than 0?
CREATE TABLE table_name_59 (
    total INTEGER,
    rank VARCHAR,
    gold VARCHAR
)
SELECT AVG(total) FROM table_name_59 WHERE rank = "17" AND gold > 0
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Total has a Rank of 17, and a Gold larger than 0? ### Input: CREATE TABLE table_name_59 (
    total INTEGER,
    rank VARCHAR,
    gold VARCHAR
) ### Response: SELECT AVG(total) FROM table_name_59 WHERE rank = "17" AND gold > 0