Table:
0
A
B
C
D
E
1
Rank
City
State
Population
Metro Population of 4 aspects
2
1
Phoenix
Arizona
1,488,750
4,329,534
3
2
El Paso
Texas
672,538
1,045,180
4
3
Denver
Colorado
634,265
3,214,218
5
4
Las Vegas
Nevada
596,424
2,247,056
6
5
Albuquerque
New Mexico
555,417
1,162,777
7
6
Tucson
Arizona
524,295
1,039,697
8
7
Mesa
Arizona
245,628
4,329,534
9
8
Colorado Springs
Colorado
431,824
668,353
10
9
Aurora
Colorado
339,030
3,214,218
11
10
Henderson
Nevada
265,679
2,247,056

Questions and formulas:
Question: What is the average rank of the city of el paso, which has a population greater than 672,538?
Formula: AVERAGE(FILTER(A1, (B1="el paso")*(D1>672538)))
Formula2: AVERAGE(FILTER(A2:A11, (B2:B11="el paso")*(D2:D11>672538)))
Level: easy
Question: What is the state of the city of denver, which has a rank less than 10?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="denver"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<10))
Formula2: LET(query1,LET(query1,FILTER(A2:E11,B2:B11="denver"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<10))
Level: hard