Table:
0
A
B
C
D
E
1
Type
Name
Title
Royal house
From
2
Sovereign
Jehoshaphat
King
David
873 BC or 871 BC or 870 BC
3
Sovereign
Jehoram
King
David
851 BC or 849 BC or 848 BC
4
Sovereign
Ahaziah
King
David
843 BC or 842 BC or 841 BC
5
Sovereign
Athaliah
Queen Regnant
David
842 BC or 841 BC
6
Sovereign
Jehoash
King
David
842 BC or 841 BC or 837 BC or 835 BC

Questions and formulas:
Question: What is the title of ahaziah?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="ahaziah"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,B2:B6="ahaziah"),3))
Level: medium
Question: What is the type of the king title?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="king"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6="king"),1))
Level: medium
Question: What is the name of the queen regnant?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="queen regnant"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6="queen regnant"),2))
Level: medium