Table:
0
A
B
C
D
E
F
1
Name
Years
Area
Authority
Decile
Roll
2
Browns Bay School
1–6
Browns Bay
State
10
610
3
Glamorgan School
1–6
Torbay Heights
State
10
507
4
Gulf Harbour School
1–8
Gulf Harbour
State
10
402
5
Long Bay School
1–6
Long Bay
State
10
318
6
Mairangi Bay School
1–6
Mairangi Bay
State
10
461
7
Murrays Bay Intermediate
7–8
Murrays Bay
State
10
963
8
Murrays Bay School
1–6
Murrays Bay
State
10
649
9
Northcross Intermediate
7–8
Northcross
State
10
1039
10
Orewa North Primary School
1–6
Orewa
State
8
295
11
Orewa Primary School
1–6
Orewa
State
8
299
12
Red Beach School
1–6
Red Beach
State
9
639
13
Sherwood School
1–6
Northcross
State
10
438
14
Silverdale School
1–8
Silverdale
State
9
420
15
St John's School
1–6
Mairangi Bay
State integrated
10
306
16
Stanmore Bay School
1–6
Stanmore Bay
State
8
473
17
Stella Maris Primary School
1–8
Silverdale
State integrated
10
314
18
Torbay School
1–6
Torbay
State
10
484
19
Wentworth Primary
1–6
Gulf Harbour
Private
n/a
55
20
Whangaparaoa School
1–6
Manly
State
9
698

Questions and formulas:
Question: What area is the school with a decile of 8 in?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1=8),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F20,E2:E20=8),3))
Level: medium
Question: Which school has a state authority and a roll of 318?
Formula: LET(query1,LET(query1,FILTER(A1:F1,D1="state"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)=318))
Formula2: LET(query1,LET(query1,FILTER(A2:F20,D2:D20="state"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)=318))
Level: hard
Question: In what area is torbay school with a state authority?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(D1="state")*(A1="torbay school")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F20,(D2:D20="state")*(A2:A20="torbay school")),3))
Level: medium