Table: state_leaders_800s_bc
Columns: state
type
name
title
royal_house
from

Question: In which state did Marquis Li rule?
SQL: SELECT "state" FROM state_leaders_800s_bc WHERE "name" = 'li' AND "title" = 'marquis'

Question: What was the Royal House for the state of Song?
SQL: SELECT "royal_house" FROM state_leaders_800s_bc WHERE "state" = 'song'

Question: What type of state was Chu?
SQL: SELECT "type" FROM state_leaders_800s_bc WHERE "state" = 'chu'

Question: What type of state was Lu, when Yi was the ruler from the royal house of Ji?
SQL: SELECT "type" FROM state_leaders_800s_bc WHERE "royal_house" = 'ji' AND "name" = 'yi' AND "state" = 'lu'