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_45 (gold INTEGER, rank VARCHAR, total VARCHAR)
  ### Question:
  How many Gold does the Nation in Rank 12 with less than 2 Total medals have?
  ### Answer:
  SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2