CREATE TABLE table_name_12 (week INT, opponent VARCHAR, attendance VARCHAR)

What was the earliest week the team played the chicago cardinals in front of less than 25,312?
SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312
SELECT MIN("week") FROM "table_name_12" WHERE "attendance" < 25 AND "chicago cardinals" = "opponent" OFFSET 312