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

Question: What is the county where kerry# is 59740?
SQL: SELECT "county" FROM "by_county" WHERE "kerrynum"=59740;

Question: In cook county Kerry# is?
SQL: SELECT "kerrynum" FROM "by_county" WHERE "county"='Cook';

Question: When bush# is 3907, what is Kerry#?
SQL: SELECT "kerrynum" FROM "by_county" WHERE "bushnum"=3907;

Question: What is the others# when bush% is 57.0%?
SQL: SELECT MAX("othersnum") FROM "by_county" WHERE "bushpct"='57.0%';