CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);

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

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

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

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

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