Table:
0
A
B
C
D
E
F
1
Election number
Election date
District
Province
Took office
Left office
2
9
1837-9-22
At large
Seville
1837-12-19
1839-06-01
3
11
1840-1-19
At large
Ávila
1840-02-21
1840-10-11
4
14
1843-9-15
At large
Badajoz
1843-10-18
1844-07-10
5
15
1844-9-3
At large
Badajoz
1844-10-14
1846-10-31
6
16
1846-6-21
Fregenal de la Sierra
Badajoz
1847-01-03
1848-12-18
7
16
1846-6-21
Fregenal de la Sierra
Badajoz
1847-12-20
1850-08-04
8
17
1850-8-31
Fregenal de la Sierra
Badajoz
1850-11-06
1851-04-07
9
17
1850-8-31
Huelva
Huelva
1850-11-06
1850-11-15
10
18
1851-5-10
Elche de la Sierra
Albacete
1851-06-04
1851-06-17
11
18
1851-5-10
Fregenal de la Sierra
Badajoz
1851-06-04
1852-12-02
12
19
1853-2-4
Fregenal de la Sierra
Badajoz
1853-03-15
1853-12-10

Questions and formulas:
Question: What is the election date for those politicians who left office on 1850-11-15?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="1850-11-15"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F12,F2:F12="1850-11-15"),2))
Level: medium
Question: What are the election date for elections held in the province of Albacete?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1="Albacete"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F12,D2:D12="Albacete"),2))
Level: medium
Question: What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?
Formula: LET(query1,SUMMARIZE(F1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,2)=11))
Formula2: LET(query1,SUMMARIZE(F2:F12,SUMX(A2:A12)),FILTER(query1,CHOOSECOLS(query1,2)=11))
Level: hard
Question: In how many district has a politician took office on 1844-10-14?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="1844-10-14"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F12,E2:E12="1844-10-14"),3))
Level: medium
Question: What are the dates of leaving office for politician from the province of Seville?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1="Seville"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F12,D2:D12="Seville"),6))
Level: medium