Table:
0
A
B
C
D
E
F
1
Rank
Nation
Gold
Silver
Bronze
Total
2
1
Cuba
27
19
14
60
3
2
Mexico
4
4
4
12
4
3
Puerto Rico
3
4
4
11
5
4
Jamaica
3
3
2
8
6
5
Bahamas
1
3
2
6
7
6
Trinidad and Tobago
1
2
1
4
8
7
Guyana
1
0
0
1
9
8
Venezuela
0
3
5
8
10
9
Dominican Republic
0
2
6
8
11
10
Barbados
0
0
1
1
12
10
Bermuda
0
0
1
1

Questions and formulas:
Question: Tell me the nation for bronze more than 0 and total more than 8 with gold of 4
Formula: LET(query1,SUMMARIZE(B1,SUMX(E1),SUMX(F1),SUMX(C1)),FILTER(query1,(CHOOSECOLS(query1,2)>0)*(CHOOSECOLS(query1,3)>8)*(CHOOSECOLS(query1,4)=4)))
Formula2: LET(query1,SUMMARIZE(B2:B12,SUMX(E2:E12),SUMX(F2:F12),SUMX(C2:C12)),FILTER(query1,(CHOOSECOLS(query1,2)>0)*(CHOOSECOLS(query1,3)>8)*(CHOOSECOLS(query1,4)=4)))
Level: hard