Question: What is the type for Duke when the from is 512 BC?
SQL: SELECT "Type" FROM "2-17938457-8" WHERE "Title" = 'Duke' AND "From" = '512 BC';

Question: What state is Ding and has a royal house of Ji?
SQL: SELECT "State" FROM "2-17938457-8" WHERE "Royal house" = 'Ji' AND "Name" = 'Ding';

Question: Which name has a state of Yan?
SQL: SELECT "Name" FROM "2-17938457-8" WHERE "State" = 'Yan';

Question: Which state has a royal house of Ying?
SQL: SELECT "State" FROM "2-17938457-8" WHERE "Royal house" = 'Ying';

Question: Which state has a royal house of Jiang?
SQL: SELECT "State" FROM "2-17938457-8" WHERE "Royal house" = 'Jiang';