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_56 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
  ### Question:
  How many total medals for the nation ranked 7 with 1 silver and under 4 bronzes?
  ### Answer:
  SELECT AVG(total) FROM table_name_56 WHERE bronze < 4 AND silver = 1 AND rank = "7"