Table:
0
A
B
C
D
E
1
State
Type
Name
Title
Royal house
2
Cai
Sovereign
Li
Marquis
Ji
3
Cai
Sovereign
Wu
Marquis
Ji
4
Cao
Sovereign
Xiao
Count
—
5
Cao
Sovereign
Yi
Count
—
6
Lu
Sovereign
Xian
Duke
Ji
7
Qi
Sovereign
Ai
Duke
Jiang
8
Qin
Sovereign
Feizi
Ruler
Ying
9
Wey
Sovereign
Qing
Marquis
—
10
Yan
Sovereign
Hui
Marquis
—

Questions and formulas:
Question: What state had a title of duke for the royal house of ji?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="duke")*(E1="ji")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,(D2:D10="duke")*(E2:E10="ji")),1))
Level: medium
Question: What state had the name of wu for the royal house of ji?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="ji")*(C1="wu")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,(E2:E10="ji")*(C2:C10="wu")),1))
Level: medium
Question: What was the name listed for the royal house of jiang and a title of duke?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="duke")*(E1="jiang")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,(D2:D10="duke")*(E2:E10="jiang")),3))
Level: medium
Question: What was the name when the state was wey?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="wey"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,A2:A10="wey"),3))
Level: medium
Question: What was the title for the state of qin?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="qin"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,A2:A10="qin"),4))
Level: medium
Question: What was the state that had the vassal name of li?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="li"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,C2:C10="li"),1))
Level: medium