CREATE TABLE "list_of_state_leaders_in_840s_bc" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);

Question: What is the title of ahaziah?
SQL: SELECT "title" FROM "list_of_state_leaders_in_840s_bc" WHERE "name"='ahaziah';

Question: What is the type of the king title?
SQL: SELECT "type" FROM "list_of_state_leaders_in_840s_bc" WHERE "title"='king';

Question: What is the name of the queen regnant?
SQL: SELECT "name" FROM "list_of_state_leaders_in_840s_bc" WHERE "title"='queen regnant';