Table:
0
A
B
C
D
E
1
School name
address
students
grades
2007 API
2
Garfield Elementary
13050 Aurora Drive San Leandro 94577-3159
389
K–5
704
3
James Madison Elementary
14751 Juniper Street San Leandro 94579-1222
373
K–5
725
4
Jefferson Elementary
14300 Bancroft Avenue San Leandro 94578-1727
496
K–5
807
5
McKinley Elementary
2150 East 14th Street San Leandro 94577-6025
497
K–5
719
6
Monroe Elementary
3750 Monterey Blvd. San Leandro 94578-4116
430
K–5
765
7
Roosevelt Elementary
951 Dowling Blvd. San Leandro 94577-2125
513
K–5
730
8
Washington Elementary
250 Dutton Avenue San Leandro 94577-2804
357
K–5
729
9
Wilson Elementary
1300 Williams Street San Leandro 94577-2401
820
K–5
734
10
Bancroft Middle
1150 Bancroft Avenue San Leandro 94577-3863
1006
6–8
671
11
John Muir Middle
1444 Williams Street San Leandro 94577-2403
1150
6–8
708
12
Lincoln High (Continuation)
2600 Teagarden Street San Leandro 94579-1222
76
10-12
510
13
San Leandro High
2200 Bancroft Avenue San Leandro 94577-6108
2617
9–12
685

Questions and formulas:
Question: Which grades have a 2007 API of 734?
Formula: LET(query1,SUMMARIZE(D1,SUMX(E1)),FILTER(query1,CHOOSECOLS(query1,2)=734))
Formula2: LET(query1,SUMMARIZE(D2:D13,SUMX(E2:E13)),FILTER(query1,CHOOSECOLS(query1,2)=734))
Level: hard
Question: Which School name has students smaller than 389, and grades of 10-12?
Formula: LET(query1,LET(query1,FILTER(A1:E1,D1="10-12"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,3)))),FILTER(query1,CHOOSECOLS(query1,2)<389))
Formula2: LET(query1,LET(query1,FILTER(A2:E13,D2:D13="10-12"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,3)))),FILTER(query1,CHOOSECOLS(query1,2)<389))
Level: hard
Question: Which grades have students smaller than 430, and a 2007 API of 510?
Formula: LET(query1,SUMMARIZE(D1,SUMX(C1),SUMX(E1)),FILTER(query1,(CHOOSECOLS(query1,2)<430)*(CHOOSECOLS(query1,3)=510)))
Formula2: LET(query1,SUMMARIZE(D2:D13,SUMX(C2:C13),SUMX(E2:E13)),FILTER(query1,(CHOOSECOLS(query1,2)<430)*(CHOOSECOLS(query1,3)=510)))
Level: hard