Table:
0
A
B
C
D
E
F
G
1
School
Location
Mascot
Enrollment (2010)
IHSAA Class
IHSAA Football Class
County
2
Adams Central
Monroe
Flying Jets
404
AA
A
01 Adams
3
Bluffton
Bluffton
Tigers
467
AA
AA
90 Wells
4
Garrett
Garrett
Railroaders
598
AAA
AAA
17 De Kalb
5
Heritage
Monroeville
Patriots
734
AAA
AAA
02 Allen
6
Leo
Leo-Cedarville
Lions
980
AAA
AAAA
02 Allen
7
South Adams
Berne
Starfires
398
AA
A
01 Adams
8
Southern Wells
Poneto
Raiders
277
A
A
90 Wells
9
Woodlan
Woodburn
Warriors
591
AAA
AA
02 Allen

Questions and formulas:
Question: What is the mascot with an enrollment (2010) less than 980, and heritage as the school?
Formula: LET(query1,LET(query1,FILTER(A1:G1,A1="heritage"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<980))
Formula2: LET(query1,LET(query1,FILTER(A2:G9,A2:A9="heritage"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<980))
Level: hard