Table:
0
A
B
C
D
E
F
1
Province
Inhabitants
established
President
Party
Election
2
Milan
3,156,694
1754
Guido Podestà
The People of Freedom
2009
3
Brescia
1,256,025
1797
Daniele Molgora
Lega Lombarda
2009
4
Bergamo
1,098,740
1797
Ettore Pirovano
Lega Lombarda
2009
5
Varese
883,285
1927
Dario Galli , commissioner
Lega Lombarda
2007
6
Monza and Brianza
849,636
2009
Dario Allevi
The People of Freedom
2009
7
Como
598,988
1786
Leonardo Carioni , commissioner
Lega Lombarda
2007
8
Pavia
548,307
1786
Daniele Bosone
Democratic Party
2011
9
Mantua
415,442
1797
Alessandro Pastacci
Democratic Party
2011
10
Cremona
363,606
1786
Massimiliano Salini
The People of Freedom
2009
11
Lecco
340,167
1995
Daniele Nava
The People of Freedom
2009
12
Lodi
227,665
1995
Pietro Foroni
Lega Lombarda
2009
13
Sondrio
183,169
1797
Massimo Sertori
Lega Lombarda
2009

Questions and formulas:
Question: What party established in 1797 won an election in 2007?
Formula: LET(query1,LET(query1,FILTER(A1:F1,F1=2007),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,3)))),FILTER(query1,CHOOSECOLS(query1,2)>1797))
Formula2: LET(query1,LET(query1,FILTER(A2:F13,F2:F13=2007),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,3)))),FILTER(query1,CHOOSECOLS(query1,2)>1797))
Level: hard