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_51 (total INTEGER, tour VARCHAR, giro VARCHAR)
  ### Question:
  The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.
  ### Answer:
  SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3