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_24 (total INTEGER, rank VARCHAR, gold VARCHAR, bronze VARCHAR)
  ### Question:
  What is the highest metal total when there are 2 Gold medals, 0 Bronze metals, and the rank is smaller than 2?
  ### Answer:
  SELECT MAX(total) FROM table_name_24 WHERE gold = 2 AND bronze = 0 AND rank < 2