Table:
0
A
B
C
D
E
1
Municipality
Inhabitants
Mayor
Party
Election
2
Florence
370,702
Matteo Renzi
Democratic Party
2009
3
Prato
187,994
Roberto Cenni
The People of Freedom
2009
4
Livorno
161,084
Alessandro Cosimi
Democratic Party
2009
5
Arezzo
100,140
Giuseppe Fanfani
Democratic Party
2011
6
Pistoia
90,226
Samuele Bertinelli
Democratic Party
2012
7
Pisa
88,332
Marco Filippeschi
Democratic Party
2008
8
Lucca
84,928
Alessandro Tambellini
Democratic Party
2012
9
Grosseto
82,284
Emilio Bonifazi
Democratic Party
2011
10
Massa
71,006
Alessandro Volpi
Democratic Party
2013
11
Carrara
65,612
Angelo Zubbani
Italian Socialist Party
2012
12
Viareggio
64,564
Leonardo Betti
Democratic Party
2013
13
Siena
54,561
Bruno Valentini
Democratic Party
2013
14
Scandicci
50,304
Simone Gheri
Democratic Party
2009

Questions and formulas:
Question: What is livorno's average election?
Formula: AVERAGEIFS(E1,A1,"livorno")
Formula2: AVERAGEIFS(E2:E14,A2:A14,"livorno")
Level: easy
Question: Which Election has a Party of democratic party, and a Mayor of leonardo betti?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="democratic party")*(C1="leonardo betti")),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E14,(D2:D14="democratic party")*(C2:C14="leonardo betti")),5))
Level: medium
Question: Which Inhabitants have a Mayor of matteo renzi, and an Election larger than 2009?
Formula: SUM(FILTER(B1, (C1="matteo renzi")*(E1>2009)))
Formula2: SUM(FILTER(B2:B14, (C2:C14="matteo renzi")*(E2:E14>2009)))
Level: easy
Question: Which Inhabitants have a Party of democratic party, and a Municipality of florence, and an Election smaller than 2009?
Formula: SUM(FILTER(B1, (D1="democratic party")*(A1="florence")*(E1<2009)))
Formula2: SUM(FILTER(B2:B14, (D2:D14="democratic party")*(A2:A14="florence")*(E2:E14<2009)))
Level: easy