Table:
0
A
B
C
D
E
1
Municipality
Inhabitants
Mayor
Party
Election
2
Trento
116,298
Alessandro Andreatta
Democratic Party
2009
3
Rovereto
38,167
Andrea Miorandi
Democratic Party
2010
4
Pergine Valsugana
20,582
Silvano Corradi
Union for Trentino
2009
5
Arco
16,901
Paolo Mattei
Democratic Party
2010
6
Riva del Garda
16,170
Adalberto Mosaner
Democratic Party
2010

Questions and formulas:
Question: In what Election year was Adalberto Mosaner the Mayor with less than 16,170 Inhabitants?
Formula: LET(query1,LET(query1,FILTER(A1:E1,C1="adalberto mosaner"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,2)))),FILTER(query1,CHOOSECOLS(query1,2)<16170))
Formula2: LET(query1,LET(query1,FILTER(A2:E6,C2:C6="adalberto mosaner"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,2)))),FILTER(query1,CHOOSECOLS(query1,2)<16170))
Level: hard
Question: In what Election year were there less than 16,170 Inhabitants?
Formula: LET(query1,SUMMARIZE(E1,SUMX(B1)),FILTER(query1,CHOOSECOLS(query1,2)<16170))
Formula2: LET(query1,SUMMARIZE(E2:E6,SUMX(B2:B6)),FILTER(query1,CHOOSECOLS(query1,2)<16170))
Level: hard
Question: What is the Mayor of Riva del Garda in 2010?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1=2010)*(A1="riva del garda")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,(E2:E6=2010)*(A2:A6="riva del garda")),3))
Level: medium
Question: How many Inhabitants were there after 2009 in the Municipality with a Party of union for trentino?
Formula: SUM(FILTER(B1, (D1="union for trentino")*(E1>2009)))
Formula2: SUM(FILTER(B2:B6, (D2:D6="union for trentino")*(E2:E6>2009)))
Level: easy