Table:
0
A
B
C
D
E
1
Ranking
Nationality
Name
Goals
Years
2
1
Philippines
Paulino Alcántara
369
1912–1916, 1918–1927
3
2
Argentina
Lionel Messi
352
2004–
4
3
Spain
Josep Samitier
333
1919–1932
5
4
Spain
César Rodríguez
301
1942–1955
6
5
Hungary
Ladislao Kubala
280
1950–1961
7
6
Spain
Josep Escolà
223
1934–1949
8
7
Spain
Ángel Arocha
215
1926–1933
9
8
Spain
Vicenç Martínez
200
1912–1923
10
9
Spain
Carles Rexach
195
1965–1981
11
10
Spain
Mariano Martín
188
1939–1946

Questions and formulas:
Question: Name the years for spain with 215 goals
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="spain"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=215))
Formula2: LET(query1,LET(query1,FILTER(A2:E11,B2:B11="spain"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=215))
Level: hard
Question: Name the most goals for josep samitier
Formula: MAXIFS(D1,C1,"josep samitier")
Formula2: MAXIFS(D2:D11,C2:C11,"josep samitier")
Level: easy