CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);

Question: What is the position for years under 1999?
SQL: SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "year"<1999;

Question: What is the average year for Team Oreca?
SQL: SELECT AVG("year") FROM "24_hours_of_le_mans_results" WHERE "team"='team oreca';

Question: Which team had a class position of 5th?
SQL: SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "class_pos"='5th';

Question: What is the class having a year under 2010 and a class position of 5th?
SQL: SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "year"<2010 AND "class_pos"='5th';