human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Team, Co-Drivers, Class, Laps, Pos., Class Pos.
###Question: In which class had 252 laps and a position of dnf?
gpt
SELECT Class FROM table WHERE Pos. = dnf AND Laps = 252