Table: stadium_matches_2
Columns: s_no
team_a
team_b
winner
margin
match_date

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

Question: What is Team (B), when S No is greater than 17?
SQL: SELECT "team_b" FROM stadium_matches_2 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 stadium_matches_2 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 stadium_matches_2 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 stadium_matches_2 WHERE "s_no" < 18 AND "margin" = '8 wickets' AND "match_date" = 'oct 30, 1989'