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 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
  ### Question:
  How many gold medals does the country ranked higher than 2 with more than 8 bronze have?
  ### Answer:
  SELECT SUM(gold) FROM table_name_56 WHERE rank < 2 AND bronze > 8