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_39 (year INTEGER, engine VARCHAR, points VARCHAR)
  ### Question:
  what's the earliest year that there was a cosworth v8 engine and 12 points?
  ### Answer:
  SELECT MIN(year) FROM table_name_39 WHERE engine = "cosworth v8" AND points = 12