Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Arahoe School
1–6
Coed
New Lynn
State
5
634
3
Avondale Intermediate
7–8
Coed
Avondale
State
3
319
4
Avondale Primary School
1–6
Coed
Avondale
State
3
342
5
Blockhouse Bay Intermediate
7–8
Coed
Blockhouse Bay
State
6
825
6
Blockhouse Bay School
1–6
Coed
Blockhouse Bay
State
8
597
7
Chaucer School
1–6
Coed
Blockhouse Bay
State
4
233
8
Fruitvale Road School
1–6
Coed
New Lynn
State
4
203
9
Glenavon School
1–8
Coed
Blockhouse Bay
State
3
239
10
Green Bay Primary School
1–8
Coed
Green Bay
State
7
501
11
Kelston Intermediate
7–8
Coed
Kelston
State
3
265
12
Kelston School
1–6
Coed
Kelston
State
3
322
13
New Lynn School
1–6
Coed
New Lynn
State
4
330
14
New Windsor School
1–6
Coed
Avondale
State
5
554
15
Rosebank School (Auckland)
1–6
Coed
Avondale
State
2
464
16
St Dominic's Catholic School
1–8
Coed
Blockhouse Bay
State integrated
6
253
17
St Leonards Road School
1–6
Coed
Kelston
State
3
487
18
St Mary's School
1–8
Coed
Avondale
State integrated
3
228

Questions and formulas:
Question: Tell me the name for kelston with roll less than 322
Formula: LET(query1,LET(query1,FILTER(A1:G1,D1="kelston"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,7)))),FILTER(query1,CHOOSECOLS(query1,2)<322))
Formula2: LET(query1,LET(query1,FILTER(A2:G18,D2:D18="kelston"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,7)))),FILTER(query1,CHOOSECOLS(query1,2)<322))
Level: hard