Table: state_leaders_870s_bc
Columns: type
name
title
royal_house
from

Question: Which Royal house is named Elah?
SQL: SELECT "royal_house" FROM state_leaders_870s_bc WHERE "name" = 'elah'

Question: What is the type of Leader for the Royal House of Baasha, who is named Elah.
SQL: SELECT "type" FROM state_leaders_870s_bc WHERE "royal_house" = 'baasha' AND "name" = 'elah'