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

Question: In how many counties di McCain win 41.62% of the vote?
SQL: SELECT COUNT("county") FROM "by_county_city" WHERE "mc_cainpct"='41.62%';

Question: What percentage of the vote did McCain win in Waynesboro (city)?
SQL: SELECT "mc_cainpct" FROM "by_county_city" WHERE "county"='Waynesboro (city)';

Question: What was Obama's percentage in those places where McCain's percentage was 55.46%?
SQL: SELECT "obamapct" FROM "by_county_city" WHERE "mc_cainpct"='55.46%';

Question: What was Obama's percentage in the county of Alleghany?
SQL: SELECT "obamapct" FROM "by_county_city" WHERE "county"='Alleghany';

Question: What was Obama's percentage in the county of Surry?
SQL: SELECT "obamapct" FROM "by_county_city" WHERE "county"='Surry';