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_19 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
  ### Question:
  What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?
  ### Answer:
  SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" AND bronze > 1