question: How many laps for a grid larger than 1 with a Time/Retired of halfshaft?
answer: SELECT laps FROM table_name_31 WHERE grid > 1 AND time_retired = "halfshaft"
context: CREATE TABLE table_name_31 (laps VARCHAR, grid VARCHAR, time_retired VARCHAR)