What type of state was Lu, when Yi was the ruler from the royal house of Ji?
CREATE TABLE table_name_39 (type VARCHAR, state VARCHAR, royal_house VARCHAR, name VARCHAR)
SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (type VARCHAR, state VARCHAR, royal_house VARCHAR, name VARCHAR) Question: What type of state was Lu, when Yi was the ruler from the royal house of Ji? [/INST] SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu" </s>