Table:
0
A
B
C
D
E
F
G
1
Father
Birth
Marriage
Became Queen
Ceased to be Queen
Death
Spouse
2
Otto II, Margrave of Meissen
1160+
1178
1198
1199
2 Feb 1211
Ottokar I
3
Béla III of Hungary
1181
1199
1199
1230
6 Dec 1240
Ottokar I
4
Philip of Swabia
1200
1224
1230
13 Sep 1248
13 Sep 1248
Wenceslaus I
5
Leopold VI, Duke of Austria
1204
Feb 1252
1253
1260 divorced
29 Oct 1266
Ottokar II
6
Rostislav of Slavonia
1245
25 Oct 1261
25 Oct 1261
1278
9 Sep 1285
Ottokar II
7
Rudolf I of Habsburg
13 Mar 1271
24 Jan 1285'
24 Jan 1285'
18 Jun 1297
18 Jun 1297
Wenceslaus II
8
Przemysl II of Poland
1 Sep 1286
1300
1303
1305
18 October 1335
Wenceslaus II
9
Mieszko I, Duke of Teschen
c. 1290
1305
1305
1306
21 September 1317
Wenceslaus III

Questions and formulas:
Question: What is the name of the father who was born in 1204 and married ottokar ii?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(G1="ottokar ii")*(B1=1204)),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G9,(G2:G9="ottokar ii")*(B2:B9=1204)),1))
Level: medium
Question: What is the birth date of the woman who ceased to be Queen on 18 Jun 1297?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,E1="18 jun 1297"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G9,E2:E9="18 jun 1297"),2))
Level: medium
Question: Leopold VI, Duke of Austria is the father-in-law of which person?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1="leopold vi, duke of austria"),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G9,A2:A9="leopold vi, duke of austria"),7))
Level: medium
Question: What is the birth date of the person who died on 18 October 1335?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,F1="18 october 1335"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G9,F2:F9="18 october 1335"),2))
Level: medium
Question: When did the person who died on 6 Dec 1240 get married?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,F1="6 dec 1240"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G9,F2:F9="6 dec 1240"),3))
Level: medium