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_89 (total INTEGER, bronze VARCHAR, gold VARCHAR)
  ### Question:
  What's the smallest total with a bronze count of 5 and a gold count less than 8?
  ### Answer:
  SELECT MIN(total) FROM table_name_89 WHERE bronze = 5 AND gold < 8