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

What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7?
SELECT AVG(total) FROM table_name_97 WHERE silver = 2 AND rank > 7
SELECT AVG("total") FROM "table_name_97" WHERE "rank" > 7 AND "silver" = 2