CREATE TABLE "alaska_state_senate_28th_alaska_legislat" (
  "district" text,
  "name" text,
  "party" text,
  "residence" text,
  "assumed_office" real,
  "next_election" real
);

Question: What is the name of the Senator in the O District who assumed office in 2013?
SQL: SELECT "name" FROM "alaska_state_senate_28th_alaska_legislat" WHERE "assumed_office"=2013 AND "district"='o';

Question: What is the party of the Senator in District A, who assumed office before 2013 and will be up for re-election after 2014?
SQL: SELECT "party" FROM "alaska_state_senate_28th_alaska_legislat" WHERE "next_election">2014 AND "assumed_office"<2013 AND "district"='a';