CREATE TABLE table_name_18 (rank NUMBER, bronze VARCHAR2, total VARCHAR2, gold VARCHAR2)

What is the rank with a higher than 2 total, 21 gold and more than 12 bronze?
SELECT AVG(rank) FROM table_name_18 WHERE total > 2 AND gold = 21 AND bronze > 12
SELECT AVG("rank") FROM "table_name_18" WHERE "bronze" > 12 AND "gold" = 21 AND "total" > 2