Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_64 (total INTEGER, rank VARCHAR, bronze VARCHAR)
### Question:
What is the average medal total when the rank is less than 5 and less than 7 bronze medals were won?
### Answer:
SELECT AVG(total) FROM table_name_64 WHERE rank < 5 AND bronze < 7