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_96 (gold INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR)
  ### Question:
  What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have?
  ### Answer:
  SELECT MAX(gold) FROM table_name_96 WHERE rank < 6 AND silver = 1 AND total > 4