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
Chu
Sovereign
Xiong Yan the elder
Viscount
Mi
6
Chu
Sovereign
Xiong Yong
Viscount
Mi
7
Jin
Sovereign
Jing
Marquis
Ji
8
Jin
Sovereign
Xi
Marquis
Ji
9
Lu
Sovereign
Shen
Duke
Ji
10
Qi
Sovereign
Wu
Duke
Jiang
11
Qin
Sovereign
Marquis
Marquis
Ying
12
Qin
Sovereign
Gongbo
Ruler
Ying
13
Qin
Sovereign
Qin Zhong
Ruler
Ying
14
Song
Sovereign
Li
Duke
—
15
Wey
Sovereign
Li
Marquis
—
16
Yan
Sovereign
Hui
Marquis
—

Questions and formulas:
Question: Who held the title of Ruler?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="ruler"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16="ruler"),3))
Level: medium
Question: What type of state did the ruler have a title?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="ruler"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16="ruler"),2))
Level: medium
Question: In what state did Jing have the title of Marquis?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="marquis")*(C1="jing")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,(D2:D16="marquis")*(C2:C16="jing")),1))
Level: medium
Question: What was Gongbo's title?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="gongbo"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,C2:C16="gongbo"),4))
Level: medium
Question: What is the name of Yi's state?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="yi"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,C2:C16="yi"),1))
Level: medium