Table: race_results_125
Columns: year
team
co_drivers
class
laps
pos
class_pos

Question: What was the year of the finish with the class pos of 6th and laps smaller than 317?
SQL: SELECT SUM("year") FROM race_results_125 WHERE "class_pos" = '6th' AND "laps" < 317