CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real
);

Question: In what county did 29231 people vote for Kerry?
SQL: SELECT "county" FROM "by_county" WHERE "kerrynum"=29231;

Question: What's the name of the county where 48.3% voted for Bush?
SQL: SELECT "county" FROM "by_county" WHERE "bushpct"='48.3%';

Question: What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?
SQL: SELECT "otherspct" FROM "by_county" WHERE "bushpct"='51.6%';

Question: What's the name of the county where 54.6% voted for Bush?
SQL: SELECT "county" FROM "by_county" WHERE "bushpct"='54.6%';