CREATE TABLE table_name_64 (total INT, gold VARCHAR, silver VARCHAR, bronze VARCHAR)

what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?
SELECT AVG(total) FROM table_name_64 WHERE silver > 2 AND bronze = 12 AND gold < 12
SELECT AVG("total") FROM "table_name_64" WHERE "bronze" = 12 AND "gold" < 12 AND "silver" > 2