text: 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_39 (total INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
  ### Question:
  What is the average total for teams with more than 1 gold, ranked over 3 and more than 3 bronze?
  ### Answer:
  SELECT AVG(total) FROM table_name_39 WHERE gold > 1 AND rank > 3 AND bronze > 3