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_38 (total INTEGER, gold VARCHAR, rank VARCHAR)
  ### Question:
  Name the average total for gold less than 1 and rank less than 5
  ### Answer:
  SELECT AVG(total) FROM table_name_38 WHERE gold < 1 AND rank < 5