Ding คือรัฐอะไรและมีราชวงศ์ของ Ji?
What state is Ding and has a royal house of Ji?
df = pd.DataFrame(columns=['state', 'royal_house', 'name'])
df.loc[(df['royal_house'] == 'Ji') & (df['name'] == 'Ding')]['state'].values[0]