user: ### NOW ANSWER:
Question: What was the total attendance with a result of w 31-21 before week 9?
Columns: ['Week', 'Date', 'Opponent', 'Result', 'Attendance']
Types: ['real', 'text', 'text', 'text', 'real']
Sample row: [1.0, 'September 30, 1951', 'at Detroit Lions', 'L 35-17', 27831.0]
SQL:

assistant: SELECT COUNT("Attendance") FROM "Table" WHERE "Result" = 'w 31-21' AND "Week" < 9.0;