CREATE TABLE table_name_41 (total INT, rank VARCHAR, gold VARCHAR)

what is the total when the rank is 7 and gold is more than 0?
SELECT AVG(total) FROM table_name_41 WHERE rank = "7" AND gold > 0
SELECT AVG("total") FROM "table_name_41" WHERE "7" = "rank" AND "gold" > 0