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_41 (total INTEGER, rank VARCHAR, gold VARCHAR)
  ### Question:
  what is the total when the rank is 7 and gold is more than 0?
  ### Answer:
  SELECT AVG(total) FROM table_name_41 WHERE rank = "7" AND gold > 0