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_84 (laps INTEGER, grid VARCHAR, time VARCHAR, rider VARCHAR)
  ### Question:
  How many laps had a time stat of accident for the rider carmelo morales when the grid was more than 25?
  ### Answer:
  SELECT SUM(laps) FROM table_name_84 WHERE time = "accident" AND rider = "carmelo morales" AND grid > 25