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

Question: What year did finish 1st in LMP1 class?
SQL: SELECT AVG("year") FROM pirro_race_stats WHERE "class" = 'lmp1' AND "class_pos" = '1st'