Table: state_leaders_840s_bc_2
Columns: type
name
title
royal_house
from

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

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

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