CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);

Question: What week number saw a w 31-16 result?
SQL: SELECT MIN("week") FROM "schedule" WHERE "result"='w 31-16';

Question: When was the game before week 8 with a result of bye?
SQL: SELECT "date" FROM "schedule" WHERE "week"<8 AND "result"='bye';

Question: What week number had the New York Giants as opponent?
SQL: SELECT COUNT("week") FROM "schedule" WHERE "opponent"='new york giants';