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

Question: Which Week has a Result of l 20–13, and an Attendance larger than 49,598?
SQL: SELECT MAX("week") FROM "schedule" WHERE "result"='l 20–13' AND "attendance">'49,598';

Question: How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354?
SQL: SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at san francisco 49ers' AND "attendance"<'34,354';

Question: Which Result has an Opponent of washington redskins?
SQL: SELECT "result" FROM "schedule" WHERE "opponent"='washington redskins';

Question: What week did the dallas cowboys play?
SQL: SELECT SUM("week") FROM "schedule" WHERE "opponent"='dallas cowboys';