CREATE TABLE "senate" (
  "district" text,
  "name" text,
  "party" text,
  "hometown" text,
  "first_elected" real,
  "towns_represented" text
);

Question: Which district had first elected earlier than 2006 for representation of Broken Arrow, Tulsa?
SQL: SELECT "district" FROM "senate" WHERE "first_elected"<2006 AND "towns_represented"='broken arrow, tulsa';

Question: How many values of first elected are for district 16?
SQL: SELECT COUNT("first_elected") FROM "senate" WHERE "district"='16';

Question: Which towns are represented in district 31?
SQL: SELECT "towns_represented" FROM "senate" WHERE "district"='31';