Table: election_2008_nc
Columns: county
obama
obama_2
mccain
mccain_2
total

Question: How many votes did McCain get in the county where Obama got 50.7% of the votes?
SQL: SELECT MAX("mccain_2") FROM election_2008_nc WHERE "obama" = '50.7%'

Question: Where did McCain get 20226 votes?
SQL: SELECT "county" FROM election_2008_nc WHERE "mccain_2" = 20226

Question: How many people voted in Cabarrus county?
SQL: SELECT MIN("total") FROM election_2008_nc WHERE "county" = 'Cabarrus'

Question: How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?
SQL: SELECT COUNT("obama_2") FROM election_2008_nc WHERE "obama" = '27.8%'