Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
### Question:
What was the earliest week the team played the chicago cardinals in front of less than 25,312?
### Answer:
SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312