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_21 (total VARCHAR, silver VARCHAR, gold VARCHAR)
  ### Question:
  How many totals have a Silver of 40, and a Gold smaller than 39?
  ### Answer:
  SELECT COUNT(total) FROM table_name_21 WHERE silver = 40 AND gold < 39