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