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

Question: What is the TOTAL Time in Office with a rank smaller than 18, and premier is Joh Bjelke-Petersen?
SQL: SELECT "total_time_in_office" FROM "rank_by_time_in_office" WHERE "rank"<18 AND "premier"='joh bjelke-petersen';

Question: What is the assumed Office date when the TOTAL Time in Office is 5years, 316days?
SQL: SELECT "assumed_office" FROM "rank_by_time_in_office" WHERE "total_time_in_office"='5years, 316days';