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_5 (gold INTEGER, nation VARCHAR, rank VARCHAR)
### Question:
How many gold medals on average were earned by Italy when they held the rank of 4?
### Answer:
SELECT AVG(gold) FROM table_name_5 WHERE nation = "italy" AND rank > 4