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_40 (grid INTEGER, team VARCHAR, laps VARCHAR)
  ### Question:
  What is the average grid number for paul cruickshank racing with less than 27 laps?
  ### Answer:
  SELECT AVG(grid) FROM table_name_40 WHERE team = "paul cruickshank racing" AND laps < 27