What type of state has a royal house of ji and has a ruler?
CREATE TABLE table_name_54 (type VARCHAR, royal_house VARCHAR, title VARCHAR)
SELECT type FROM table_name_54 WHERE royal_house = "ji" AND title = "ruler"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (type VARCHAR, royal_house VARCHAR, title VARCHAR) Question: What type of state has a royal house of ji and has a ruler? [/INST] SELECT type FROM table_name_54 WHERE royal_house = "ji" AND title = "ruler" </s>