Table:
0
A
B
C
D
E
1
Rank
Name
City
Height
Floors
2
1
Kingdom Tower
Jeddah
m (ft)
186
3
2
Diamond Tower
Jeddah
m (ft)
93
4
3
Capital Market Authority Headquarters
Riyadh
m (ft)
77
5
4
Lamar Tower 1
Jeddah
m (ft)
87
6
5
Burj Rafal
Riyadh
m (ft)
68
7
6
KAFD World Trade Centre
Riyadh
m (ft)
67
8
7
Lamar Tower 2
Jeddah
m (ft)
84
9
8
Kempinski Hotel
Jeddah
m (ft)
69
10
9
The Headquarters
Jeddah
m (ft)
52
11
10
Aqua Tower
Jeddah
m (ft)
59
12
11
GCC Bank Headquarters
Riyadh
m (ft)
53
13
12
Abraj Al Bait Maqam Tower
Mecca
m (ft)
57
14
13
Abraj Al Bait Qibla Tower
Mecca
m (ft)
57
15
14
Al Majdoul Tower
Riyadh
m (ft)
54
16
15
West Tower at the HQ Business Park
Riyadh
m (ft)
54

Questions and formulas:
Question: What is the average number of floors for buildings in mecca ranked above 12?
Formula: AVERAGE(FILTER(E1, (C1="mecca")*(A1<12)))
Formula2: AVERAGE(FILTER(E2:E16, (C2:C16="mecca")*(A2:A16<12)))
Level: easy
Question: What city is the lamar tower 1, ranked above 5?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="lamar tower 1"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<5))
Formula2: LET(query1,LET(query1,FILTER(A2:E16,B2:B16="lamar tower 1"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<5))
Level: hard
Question: What city has a building with over 57 floors?
Formula: LET(query1,SUMMARIZE(C1,SUMX(E1)),FILTER(query1,CHOOSECOLS(query1,2)>57))
Formula2: LET(query1,SUMMARIZE(C2:C16,SUMX(E2:E16)),FILTER(query1,CHOOSECOLS(query1,2)>57))
Level: hard