Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Carterton School
1–8
Coed
Carterton
State
4
356
3
Dalefield School
1–8
Coed
Dalefield
State
5
52
4
Gladstone School
1–8
Coed
Gladstone
State
7
110
5
Ponatahi Christian School
1–13
Coed
Carterton
Integrated
7
81
6
South End School
1–8
Coed
Carterton
State
5
126
7
St Mary's School
1–8
Coed
Carterton
Integrated
6
78

Questions and formulas:
Question: What gender is the team that has a decile of 5 and in the Dalefield area?
Formula: LET(query1,LET(query1,FILTER(A1:G1,D1="dalefield"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)=5))
Formula2: LET(query1,LET(query1,FILTER(A2:G7,D2:D7="dalefield"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)=5))
Level: hard
Question: What school in Dalefield has a roll less than 81?
Formula: LET(query1,LET(query1,FILTER(A1:G1,D1="dalefield"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,7)))),FILTER(query1,CHOOSECOLS(query1,2)<81))
Formula2: LET(query1,LET(query1,FILTER(A2:G7,D2:D7="dalefield"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,7)))),FILTER(query1,CHOOSECOLS(query1,2)<81))
Level: hard