Instruct: What type of state has a royal house of ji and has a ruler?
Output: SELECT Type FROM table WHERE Royal house = ji AND Title = ruler