Table:
0
A
B
C
D
E
F
1
State
Type
Name
Title
Royal house
From
2
Cao
Sovereign
Zhong
Lord
—
1002 BC
3
Lu
Sovereign
Bo Qin
Ruler
Ji
1043 BC
4
Lu
Sovereign
Kao
Duke
Ji
997 BC
5
Lu
Sovereign
Yang
Duke
Ji
993 BC
6
Qi
Sovereign
Ding
Duke
—
999 BC

Questions and formulas:
Question: What year is Zhong from?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,C1="zhong"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,C2:C6="zhong"),6))
Level: medium
Question: Which Royal house has a name of ding?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,C1="ding"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,C2:C6="ding"),5))
Level: medium
Question: What type of state is bo qin?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,C1="bo qin"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,C2:C6="bo qin"),2))
Level: medium
Question: What year is the Royal house of ji from?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="ji"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,E2:E6="ji"),6))
Level: medium
Question: What type of state has a royal house of ji and has a ruler?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(E1="ji")*(D1="ruler")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,(E2:E6="ji")*(D2:D6="ruler")),2))
Level: medium