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_16 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
  ### Question:
  When a race had less than 18 laps and time/retired of accident, what was the smallest grid?
  ### Answer:
  SELECT MIN(grid) FROM table_name_16 WHERE time_retired = "accident" AND laps < 18