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

What was the average rank for the team that had more than 5 medals and more than 6 gold medals?
SELECT AVG(rank) FROM table_name_9 WHERE total > 5 AND gold > 6
SELECT AVG("rank") FROM "table_name_9" WHERE "gold" > 6 AND "total" > 5