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_89 (year INTEGER, role VARCHAR, character VARCHAR)
  ### Question:
  What year was the main role a character named Guan Yu (關羽)?
  ### Answer:
  SELECT MIN(year) FROM table_name_89 WHERE role = "main" AND character = "guan yu (關羽)"