Table:
0
A
B
C
D
E
F
G
1
Province
Capital
Population (2005)
Population (%)
Area (km²)
Area (%)
Density
2
Camagüey
Camagüey
784178
7.02
14134
13.2
50.22
3
Ciego de Ávila
Ciego de Ávila
411766
3.68
5962
5.6
60.70
4
Cienfuegos
Cienfuegos
395183
3.54
4149
3.9
94.54
5
Ciudad de la Habana
Havana
2201610
19.70
740
0.7
3053.49
6
Granma
Bayamo
822452
7.36
8452
7.9
98.20
7
Guantánamo
Guantánamo
507118
4.54
6366
6.0
82.22
8
Holguín
Holguín
1021321
9.14
9105
8.5
109.90
9
Isla de la Juventud
Nueva Gerona
86559
0.77
2199
2.1
35.78
10
La Habana (1976-2011)
Havana
711066
6.36
5669
5.3
124.06
11
Las Tunas
Las Tunas
525485
4.70
6373
6.0
79.77
12
Matanzas
Matanzas
670427
6.00
11669
10.
56.80
13
Pinar del Río
Pinar del Río
726574
6.50
10860
10.2
66.63
14
Sancti Spíritus
Sancti Spíritus
460328
4.12
6737
6.3
68.33
15
Santiago de Cuba
Santiago de Cuba
1036281
9.27
6343
5.9
168.32
16
Villa Clara
Santa Clara
817395
7.31
8069
7.6
97.17
17
Cuba
Havana
11177743
100
106827
100
101.72

Questions and formulas:
Question: How many regions have a capital of matanzas and a 2005 population under 670427?
Formula: SUM(FILTER(E1, (B1="matanzas")*(C1<670427)))
Formula2: SUM(FILTER(E2:E17, (B2:B17="matanzas")*(C2:C17<670427)))
Level: easy
Question: What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?
Formula: AVERAGE(FILTER(E1, (B1="camagüey")*(D1>7.02)))
Formula2: AVERAGE(FILTER(E2:E17, (B2:B17="camagüey")*(D2:D17>7.02)))
Level: easy