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_59 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
  ### Question:
  What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?
  ### Answer:
  SELECT COUNT(gold) FROM table_name_59 WHERE bronze > 27 AND total < 305