CREATE TABLE table_name_64 (total INT, rank VARCHAR, bronze VARCHAR)

What is the average medal total when the rank is less than 5 and less than 7 bronze medals were won?
SELECT AVG(total) FROM table_name_64 WHERE rank < 5 AND bronze < 7
SELECT AVG("total") FROM "table_name_64" WHERE "bronze" < 7 AND "rank" < 5