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