Table:
0
A
B
C
D
E
1
Official Name
Status
Area km 2
Population
Census Ranking
2
Bathurst
City
91.55
12,275
327 of 5,008
3
Tracadie-Sheila
Town
24.64
4,933
717 of 5,008
4
Beresford
Town
19.20
4,351
775 of 5,008
5
Caraquet
Town
68.26
4,169
799 of 5,008
6
Shippagan
Town
9.94
2,603
1,116 of 5,008
7
Petit-Rocher
Village
4.49
1,908
1,371 of 5,008
8
Lamèque
Town
12.45
1,432
1,657 of 5,008
9
Bas-Caraquet
Village
31.00
1,380
1,694 of 5,008
10
Bertrand
Town
46.45
1,137
1,913 of 5,008
11
Pointe-Verte
Village
13.79
976
2,112 of 5,008
12
Sainte-Marie - Saint-Raphaël
Village
15.61
955
2,141 of 5,008
13
Nigadoo
Village
7.69
952
2,145 of 5,008
14
Le Goulet
Village
5.46
817
2,345 of 5,008
15
Saint-Isidore
Village
22.58
748
2,471 of 5,008
16
Grande-Anse
Village
24.42
738
2,490 of 5,008
17
Paquetville
Village
9.40
706
2,553 of 5,008
18
Maisonnette
Village
12.88
573
2,825 of 5,008
19
Saint-Léolin
Village
19.78
488
3,043 of 5,008

Questions and formulas:
Question: What is the census ranking for the community with an area smaller than 9.94 km2 and a population smaller than 817?
Formula: LET(query1,SUMMARIZE(E1,SUMX(C1),SUMX(D1)),FILTER(query1,(CHOOSECOLS(query1,2)<9.94)*(CHOOSECOLS(query1,3)<817)))
Formula2: LET(query1,SUMMARIZE(E2:E19,SUMX(C2:C19),SUMX(D2:D19)),FILTER(query1,(CHOOSECOLS(query1,2)<9.94)*(CHOOSECOLS(query1,3)<817)))
Level: hard
Question: What is the area (in km2) for the community that has a status of village, a census ranking of 2,471 of 5,008, and a population of less than 748?
Formula: SUM(FILTER(C1, (B1="village")*(E1="2,471 of 5,008")*(D1<748)))
Formula2: SUM(FILTER(C2:C19, (B2:B19="village")*(E2:E19="2,471 of 5,008")*(D2:D19<748)))
Level: easy
Question: What is the status for Pointe-Verte, with a population smaller than 1,137?
Formula: LET(query1,LET(query1,FILTER(A1:E1,A1="pointe-verte"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1137))
Formula2: LET(query1,LET(query1,FILTER(A2:E19,A2:A19="pointe-verte"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1137))
Level: hard
Question: What is the area (in km2) for the village of Paquetville, with a population over 706?
Formula: SUM(FILTER(C1, (B1="village")*(A1="paquetville")*(D1>706)))
Formula2: SUM(FILTER(C2:C19, (B2:B19="village")*(A2:A19="paquetville")*(D2:D19>706)))
Level: easy
Question: What is the area (in km2) for the town of lamèque, with a population of less than 4,351?
Formula: SUM(FILTER(C1, (B1="town")*(D1<4351)*(A1="lamèque")))
Formula2: SUM(FILTER(C2:C19, (B2:B19="town")*(D2:D19<4351)*(A2:A19="lamèque")))
Level: easy