Table schema:
CREATE TABLE table_name_64 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)

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