Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18?
CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
SELECT COUNT("took_office") FROM "senate" WHERE "party"='democratic' AND "home_town"='victoria' AND "district"<18;