CREATE TABLE "rank_by_time_in_office" (
  "rank" real,
  "prime_minister" text,
  "party" text,
  "assumed_office" text,
  "left_office" text,
  "total_time_in_office" text
);

Question: What is the assumed office date of the prime minister ranked 22?
SQL: SELECT "assumed_office" FROM "rank_by_time_in_office" WHERE "rank"=22;

Question: What is the total time in office of the prime minister from the liberal party and left office in 19 December 1967?
SQL: SELECT "total_time_in_office" FROM "rank_by_time_in_office" WHERE "party"='liberal' AND "left_office"='19 december 1967';

Question: What is the party of the prime minister who left office on 11 March 1983?
SQL: SELECT "party" FROM "rank_by_time_in_office" WHERE "left_office"='11 march 1983';