Context: CREATE TABLE table_name_87 (state VARCHAR, royal_house VARCHAR, name VARCHAR)
Question: What state is Ding and has a royal house of Ji?
Answer: SELECT state FROM table_name_87 WHERE royal_house = "ji" AND name = "ding"