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
context: CREATE TABLE table_name_40 (grid INTEGER, team VARCHAR, laps VARCHAR)