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

What type of state has a royal house of ji and has a ruler?
SELECT "Type" FROM table_45587 WHERE "Royal house" = 'ji' AND "Title" = 'ruler'
SELECT "Type" FROM "table_45587" WHERE "Royal house" = 'ji' AND "Title" = 'ruler'