Table: state_leaders_820s_bc
Columns: state
type
name
title
royal_house
from

Question: What is Name, when State is "Jin"?
SQL: SELECT "name" FROM state_leaders_820s_bc WHERE "state" = 'jin'

Question: What is Name, when Royal House is "Ji", and when State is "Cai"?
SQL: SELECT "name" FROM state_leaders_820s_bc WHERE "royal_house" = 'ji' AND "state" = 'cai'

Question: What is State, when From is "830 BC"?
SQL: SELECT "state" FROM state_leaders_820s_bc WHERE "from" = '830 bc'