Table:
0
A
B
C
D
E
F
G
1
School
City
Team Name
Enrollment
IHSAA Class
IHSAA Football Class
County
2
Batesville
Batesville
Bulldogs
676
AAA
AAA
69 Ripley
3
East Central
St. Leon
Trojans
1,406
AAAA
AAAA
15 Dearborn
4
Franklin County
Brookville
Wildcats
968
AAA
AAAA
24 Franklin
5
Greensburg
Greensburg
Pirates
649
AAA
AAA
16 Decatur
6
Lawrenceburg
Lawrenceburg
Tigers
566
AAA
AAA
15 Dearborn
7
South Dearborn
Aurora
Knights
906
AAA
AAAA
15 Dearborn

Questions and formulas:
Question: What is the IHSAA class in Batesville?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="batesville"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,B2:B7="batesville"),5))
Level: medium
Question: Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in?
Formula: LET(query1,LET(query1,FILTER(A1:G1,(F1="aaa")*(A1="lawrenceburg")),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<676))
Formula2: LET(query1,LET(query1,FILTER(A2:G7,(F2:F7="aaa")*(A2:A7="lawrenceburg")),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<676))
Level: hard
Question: What school is in Brookville?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="brookville"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,B2:B7="brookville"),1))
Level: medium