question: What type of state was Lu, when Yi was the ruler from the royal house of Ji?
answer: SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu"
context: CREATE TABLE table_name_39 (type VARCHAR, state VARCHAR, royal_house VARCHAR, name VARCHAR)