Table: state_leaders_990s_bc
Columns: state
type
name
title
royal_house
from

Question: What year is Zhong from?
SQL: SELECT "from" FROM state_leaders_990s_bc WHERE "name" = 'zhong'

Question: Which Royal house has a name of ding?
SQL: SELECT "royal_house" FROM state_leaders_990s_bc WHERE "name" = 'ding'

Question: What type of state is bo qin?
SQL: SELECT "type" FROM state_leaders_990s_bc WHERE "name" = 'bo qin'

Question: What year is the Royal house of ji from?
SQL: SELECT "from" FROM state_leaders_990s_bc WHERE "royal_house" = 'ji'

Question: What type of state has a royal house of ji and has a ruler?
SQL: SELECT "type" FROM state_leaders_990s_bc WHERE "royal_house" = 'ji' AND "title" = 'ruler'