Table:
0
A
B
C
D
E
1
State
Type
Name
Title
Royal house
2
Cai
Sovereign
Wu
Marquis
Ji
3
Cao
Sovereign
Yi
Count
—
4
Chen
Sovereign
You
Duke
—
5
Jin
Sovereign
Li
Marquis
Ji
6
Jin
Sovereign
Jing
Marquis
Ji
7
Lu
Sovereign
Xian
Duke
Ji
8
Lu
Sovereign
Shen
Duke
Ji
9
Qi
Sovereign
Xian
Duke
Jiang
10
Qi
Sovereign
Wu
Duke
Jiang
11
Qin
Sovereign
Feizi
Ruler
Ying
12
Qin
Sovereign
Marquis
Ruler
Ying
13
Song
Sovereign
Li
Duke
—
14
Wey
Sovereign
Qing
Marquis
—
15
Wey
Sovereign
Li
Marquis
—
16
Yan
Sovereign
Hui
Marquis
—

Questions and formulas:
Question: What is the royal house for Wu at the state of cai?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="wu")*(A1="cai")),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,(C2:C16="wu")*(A2:A16="cai")),5))
Level: medium
Question: What is the state where the title is listed as count?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="count"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16="count"),1))
Level: medium
Question: What is the state for the royal house of ying?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="ying"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,E2:E16="ying"),1))
Level: medium