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

Question: What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?
SQL: SELECT AVG(total) FROM table_name_26 WHERE bronze = 4 AND silver > 2 AND gold < 7