CREATE TABLE "one_day_international" (
  "s_no" real,
  "team_a" text,
  "team_b" text,
  "winner" text,
  "margin" text,
  "match_date" text
);

Question: What is Margin, when Match Date is Oct 17, 2007?
SQL: SELECT "margin" FROM "one_day_international" WHERE "match_date"='oct 17, 2007';

Question: What is Team (B), when S No is greater than 17?
SQL: SELECT "team_b" FROM "one_day_international" WHERE "s_no">17;

Question: What is the total number of S No(s), when the Margin is 16 runs?
SQL: SELECT COUNT("s_no") FROM "one_day_international" WHERE "margin"='16 runs';

Question: What is the highest S No, when the Match Date is Nov 1, 2003?
SQL: SELECT MAX("s_no") FROM "one_day_international" WHERE "match_date"='nov 1, 2003';

Question: What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989?
SQL: SELECT "team_b" FROM "one_day_international" WHERE "s_no"<18 AND "margin"='8 wickets' AND "match_date"='oct 30, 1989';