Table:
0
A
B
C
D
E
F
G
1
Name
Birth
Marriage
Became Queen
Ceased to be Queen
Death
Spouse
2
Charlotte, Princess Royal
29 September 1766
18 May 1797
1 January 1806 elevated from Electress
30 October 1816 husband's death
5 October 1828
Frederick I
3
Catherine Pavlovna of Russia
10 May 1788
24 January 1816
30 October 1816 husband's accession
19 January 1819
19 January 1819
William I
4
Pauline Therese of Württemberg
4 September 1800
15 April 1820
15 April 1820
25 June 1864 husband's death
10 May 1873
William I
5
Olga Nikolaevna of Russia
11 September 1822
13 July 1848
25 June 1864 husband's accession
6 October 1891 husband's death
30 October 1892
Charles I
6
Charlotte of Schaumburg-Lippe
10 October 1864
8 April 1886
6 October 1891 husband's accession
30 November 1918 husband's abdication
16 July 1946
William II

Questions and formulas:
Question: When was the person who died on 16 July 1946 born?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,F1="16 july 1946"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,F2:F6="16 july 1946"),2))
Level: medium
Question: Who is the spouse of the person born on 29 September 1766?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="29 september 1766"),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,B2:B6="29 september 1766"),7))
Level: medium
Question: Who is born on 29 September 1766?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="29 september 1766"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,B2:B6="29 september 1766"),1))
Level: medium
Question: Who was born on 10 May 1788 that ceased to be queen?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="10 may 1788"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,B2:B6="10 may 1788"),5))
Level: medium
Question: How is the marriage of who became queen on 30 October 1816 husband's accession?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="30 october 1816 husband's accession"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,D2:D6="30 october 1816 husband's accession"),3))
Level: medium
Question: When was the person who became queen on 15 April 1820 born?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="15 april 1820"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,D2:D6="15 april 1820"),2))
Level: medium