CREATE TABLE "by_county" (
  "county" text,
  "obamanum" real,
  "obamapct" text,
  "mc_cainnum" real,
  "mc_cainpct" text
);

Question: In what county did McCain get 57.8%?
SQL: SELECT "county" FROM "by_county" WHERE "mc_cainpct"='57.8%';

Question: How many figures are given for McCain's % in Davidson county?
SQL: SELECT COUNT("mc_cainpct") FROM "by_county" WHERE "county"='DAVIDSON';

Question: What percentage did Obama get in Rutherford county?
SQL: SELECT "obamapct" FROM "by_county" WHERE "county"='RUTHERFORD';

Question: What percentage did McCain get in Hamilton county?
SQL: SELECT "mc_cainpct" FROM "by_county" WHERE "county"='HAMILTON';

Question: What percentage did Obama get when McCain got 52.8%?
SQL: SELECT "obamapct" FROM "by_county" WHERE "mc_cainpct"='52.8%';

Question: How many votes did Obama get in Lake County?
SQL: SELECT MIN("obamanum") FROM "by_county" WHERE "county"='LAKE';