Table:
0
A
B
C
D
E
F
1
Rank
Nation
Gold
Silver
Bronze
Total
2
1
Italy
5
4
2
11
3
2
France
3
3
5
11
4
3
Egypt
2
0
2
4
5
4
Algeria
1
4
4
9
6
5
Tunisia
1
1
5
7
7
6
Turkey
1
1
0
2
8
7
Slovenia
1
0
1
2
9
8
Serbia and Montenegro
0
1
2
3
10
9
Spain
0
0
5
5
11
10=
Greece
0
0
1
1
12
10=
Morocco
0
0
1
1

Questions and formulas:
Question: What is the average total medals Egypt, who has less than 2 gold, has?
Formula: AVERAGE(FILTER(F1, (B1="egypt")*(C1<2)))
Formula2: AVERAGE(FILTER(F2:F12, (B2:B12="egypt")*(C2:C12<2)))
Level: easy
Question: What is the total number of gold medals Egypt, who has less than 0 silver, has?
Formula: SUM(FILTER(C1, (B1="egypt")*(D1<0)))
Formula2: SUM(FILTER(C2:C12, (B2:B12="egypt")*(D2:D12<0)))
Level: easy
Question: What is the highest gold a team with less than 3 silver and more than 5 bronze medals has?
Formula: MAX(FILTER(C1, (D1<3)*(E1>5)))
Formula2: MAX(FILTER(C2:C12, (D2:D12<3)*(E2:E12>5)))
Level: easy
Question: What is the rank of the team with 1 bronze and 0 gold medals?
Formula: LET(query1,SUMMARIZE(A1,SUMX(E1),SUMX(C1)),FILTER(query1,(CHOOSECOLS(query1,2)=1)*(CHOOSECOLS(query1,3)=0)))
Formula2: LET(query1,SUMMARIZE(A2:A12,SUMX(E2:E12),SUMX(C2:C12)),FILTER(query1,(CHOOSECOLS(query1,2)=1)*(CHOOSECOLS(query1,3)=0)))
Level: hard