CREATE TABLE table_50238 ("State" CLOB, "Type" CLOB, "Name" CLOB, "Title" CLOB, "Royal house" CLOB)

What state had a title of duke for the royal house of ji?
SELECT "State" FROM table_50238 WHERE "Title" = 'duke' AND "Royal house" = 'ji'
SELECT "State" FROM "table_50238" WHERE "Royal house" = 'ji' AND "Title" = 'duke'