Table:
0
A
B
C
D
E
F
G
H
I
J
1
Rank
City
Province
Date of Official Foundation of Municipality
2006
1996
1986
1976
1966
1956
2
1
Tehran
Tehran
1885
7705036
6758845
6042584
4530223
2719730
1512082
3
2
Mashhad
Razavi Khorasan
1918
2410800
1887405
1463508
667770
409616
241984
4
3
Esfahān
Esfahān
1928
1602110
1266072
986753
661510
424045
254708
5
4
Tabriz
East Azarbaijan
1917
1398060
1191043
971482
597976
403413
289996
6
5
Karaj
Alborz
1934
1377450
940968
611510
137926
44243
14526
7
6
Shiraz
Fars
1950
1227311
1053025
848289
425813
269865
170659

Questions and formulas:
Question: What is the 2006 sum with a rank 1 and more than 6758845 in 1996?
Formula: SUM(FILTER(E1, (A1=1)*(F1>6758845)))
Formula2: SUM(FILTER(E2:E7, (A2:A7=1)*(F2:F7>6758845)))
Level: easy
Question: What is the total number in 2006, which has an official foundation of municipality of 1918?
Formula: SUM(FILTER(E1, D1=1918))
Formula2: SUM(FILTER(E2:E7, D2:D7=1918))
Level: easy
Question: What is teh average rank of the city of mashhad, which had less than 667770 in 1976?
Formula: AVERAGE(FILTER(A1, (B1="mashhad")*(H1<667770)))
Formula2: AVERAGE(FILTER(A2:A7, (B2:B7="mashhad")*(H2:H7<667770)))
Level: easy
Question: What is the average rank of the province alborz, which had more than 14526 in 1956?
Formula: AVERAGE(FILTER(A1, (C1="alborz")*(J1>14526)))
Formula2: AVERAGE(FILTER(A2:A7, (C2:C7="alborz")*(J2:J7>14526)))
Level: easy