CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);

Question: What is the earliest date of taking office for district 22?
SQL: SELECT MIN("took_office") FROM "senate" WHERE "district"=22;

Question: What district has a democratic leader from Roby?
SQL: SELECT SUM("district") FROM "senate" WHERE "party"='democratic' AND "home_town"='roby';

Question: What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988?
SQL: SELECT MAX("district") FROM "senate" WHERE "party"='democratic' AND "senator"='steve carriker' AND "took_office">1988;