Table:
0
A
B
C
D
E
F
G
1
rank
club id
gold
silver
bronze
total
2
1.0
2
11.0
11.0
9.0
31.0
3
2.0
3
8.0
7.0
6.0
21.0
4
3.0
1
7.0
4.0
2.0
13.0
5
4.0
4
4.0
2.0
6.0
12.0
6
5.0
5
3.0
3.0
0.0
6.0
7
6.0
6
2.0
1.0
0.0
3.0

Questions and formulas:
Question: What is the average number of gold medals for clubs?
Formula: AVERAGE(C1)
Formula2: AVERAGE(C2:C7)
Level: easy
Question: What is the average number of gold medals for a club?
Formula: AVERAGE(C1)
Formula2: AVERAGE(C2:C7)
Level: easy
Question: How many clubs have total medals less than 10?
Formula: SUM(LET(a,B1,b,B1,c,INDEX(LET(query1,SUMMARIZE(B1,SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,2)<10)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: SUM(LET(a,B2:B7,b,B2:B7,c,INDEX(LET(query1,SUMMARIZE(B2:B7,SUMX(F2:F7)),FILTER(query1,CHOOSECOLS(query1,2)<10)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: What is the total number of clubs that have less than 10 gold medals in total?
Formula: SUM(LET(a,B1,b,B1,c,INDEX(LET(query1,SUMMARIZE(B1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)<10)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: SUM(LET(a,B2:B7,b,B2:B7,c,INDEX(LET(query1,SUMMARIZE(B2:B7,SUMX(C2:C7)),FILTER(query1,CHOOSECOLS(query1,2)<10)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many clubs won less than 10 medals in total?
Formula: SUM(LET(a,B1,b,B1,c,INDEX(LET(query1,SUMMARIZE(B1,SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,2)<10)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: SUM(LET(a,B2:B7,b,B2:B7,c,INDEX(LET(query1,SUMMARIZE(B2:B7,SUMX(F2:F7)),FILTER(query1,CHOOSECOLS(query1,2)<10)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard