CREATE TABLE table_name_97 (total INT, silver VARCHAR, gold VARCHAR)

What is the total medals for nation with more than 0 silvers and more than 0 golds?
SELECT AVG(total) FROM table_name_97 WHERE silver > 0 AND gold > 0
SELECT AVG("total") FROM "table_name_97" WHERE "gold" > 0 AND "silver" > 0