CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);

Question: I want to see the result for venue of n and attendance more than 20,664
SQL: SELECT "result" FROM "scottish_cup" WHERE "venue"='n' AND "attendance">'20,664';

Question: Tell me the result for venue of a
SQL: SELECT "result" FROM "scottish_cup" WHERE "venue"='a';

Question: I want to know the average attendance for n venue and f round
SQL: SELECT AVG("attendance") FROM "scottish_cup" WHERE "venue"='n' AND "round"='f';