Table: op_poll_us_2008
Columns: poll_source
sample_size
margin_of_error
date
democrat
republican

Question: What was the sample size for polling on May 2-7, 2007 for Hillary Clinton?
SQL: SELECT "sample_size" FROM op_poll_us_2008 WHERE "date" = 'may 2-7, 2007' AND "democrat" = 'hillary clinton'

Question: Who was the republican when hillary clinton was the democrat and the sample size was more than 1087 with a margin of error of 2.6?
SQL: SELECT "republican" FROM op_poll_us_2008 WHERE "sample_size" > 1087 AND "democrat" = 'hillary clinton' AND "margin_of_error" = 2.6

Question: Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007?
SQL: SELECT "poll_source" FROM op_poll_us_2008 WHERE "democrat" = 'hillary clinton' AND "margin_of_error" < 4.5 AND "republican" = 'john mccain' AND "date" = 'may 2-7, 2007'

Question: What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5?
SQL: SELECT COUNT("sample_size") FROM op_poll_us_2008 WHERE "poll_source" = 'rasmussen reports' AND "margin_of_error" > 4.5

Question: What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427?
SQL: SELECT "date" FROM op_poll_us_2008 WHERE "republican" = 'john mccain' AND "poll_source" = 'quinnipiac' AND "democrat" = 'barack obama' AND "sample_size" > 1427