Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Arrowtown School
1–8
Coed
Arrowtown
State
10
498
3
Glenorchy School
1–8
Coed
Glenorchy
State
9
28
4
Hawea Flat School
1–6
Coed
Hawea Flat
State
10
160
5
Holy Family School
1–8
Coed
Wanaka
State integrated
10
122
6
KingsView School
1–8
Coed
Frankton
State integrated
10
20
7
Makarora Primary School
1–8
Coed
Makarora
State
7
15
8
Mount Aspiring College
7–13
Coed
Wanaka
State
10
711
9
Queenstown School
1–6
Coed
Queenstown
State
10
627
10
Remarkables Primary School
1–8
Coed
Frankton
State
10
495
11
St Joseph's School
1–8
Coed
Queenstown
State integrated
10
141
12
Wakatipu High School
9–13
Coed
Queenstown
State
10
720
13
Wanaka Primary School
1–6
Coed
Wanaka
State
10
527

Questions and formulas:
Question: How many decile has a roll less than 20?
Formula: SUM(FILTER(F1, G1<20))
Formula2: SUM(FILTER(F2:F13, G2:G13<20))
Level: easy
Question: Which gender had a roll of 627?
Formula: LET(query1,SUMMARIZE(C1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,2)=627))
Formula2: LET(query1,SUMMARIZE(C2:C13,SUMX(G2:G13)),FILTER(query1,CHOOSECOLS(query1,2)=627))
Level: hard
Question: Glenorchy school has a decile less than 10 and is in what area?
Formula: LET(query1,LET(query1,FILTER(A1:G1,A1="glenorchy school"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<10))
Formula2: LET(query1,LET(query1,FILTER(A2:G13,A2:A13="glenorchy school"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<10))
Level: hard
Question: Makarora primary school has a roll less than 141 and what gender?
Formula: LET(query1,LET(query1,FILTER(A1:G1,A1="makarora primary school"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,7)))),FILTER(query1,CHOOSECOLS(query1,2)<141))
Formula2: LET(query1,LET(query1,FILTER(A2:G13,A2:A13="makarora primary school"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,7)))),FILTER(query1,CHOOSECOLS(query1,2)<141))
Level: hard