Table: state_leaders_840s_bc
Columns: state
type
name
title
royal_house

Question: Who held the title of Ruler?
SQL: SELECT "name" FROM state_leaders_840s_bc WHERE "title" = 'ruler'

Question: What type of state did the ruler have a title?
SQL: SELECT "type" FROM state_leaders_840s_bc WHERE "title" = 'ruler'

Question: In what state did Jing have the title of Marquis?
SQL: SELECT "state" FROM state_leaders_840s_bc WHERE "title" = 'marquis' AND "name" = 'jing'

Question: What was Gongbo's title?
SQL: SELECT "title" FROM state_leaders_840s_bc WHERE "name" = 'gongbo'

Question: What is the name of Yi's state?
SQL: SELECT "state" FROM state_leaders_840s_bc WHERE "name" = 'yi'