CREATE TABLE table_name_87 (state VARCHAR2, royal_house VARCHAR2, name VARCHAR2)

What state is Ding and has a royal house of Ji?
SELECT state FROM table_name_87 WHERE royal_house = "ji" AND name = "ding"
SELECT "state" FROM "table_name_87" WHERE "ding" = "name" AND "ji" = "royal_house"