CREATE TABLE table_name_54 (type VARCHAR(255), royal_house VARCHAR(255), title VARCHAR(255))
What type of state has a royal house of ji and has a ruler?
    
SQL: SELECT type FROM table_name_54 WHERE royal_house = "ji" AND title = "ruler"