CREATE TABLE "2007_08_peterborough_united_f_c_season" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);

Question: what was the attendance for a home venue and a w 3-0 result?
SQL: SELECT AVG("attendance") FROM "2007_08_peterborough_united_f_c_season" WHERE "venue"='home' AND "result"='w 3-0';

Question: what was the attendance at the home venue with result w 3-1?
SQL: SELECT MAX("attendance") FROM "2007_08_peterborough_united_f_c_season" WHERE "venue"='home' AND "result"='w 3-1';

Question: where did rochdale play as opponent?
SQL: SELECT "venue" FROM "2007_08_peterborough_united_f_c_season" WHERE "opponent"='rochdale';