Table:
0
A
B
C
D
E
F
G
1
Line name
Opened
Last extension
Stations served
Length
Average Interstation
Journeys made (per annum)
2
Line A
1977
1994
46
108.5km / 67.5miles
2,411m
272,800,000
3
Line B
1977
1981
47
80.0km / 49.8miles
1,739m
165,100,000
4
Line C
1979
2000
84
185.6km / 115.5miles
2,184m
140,000,000
5
Line D
1987
1995
59
190.0km / 118.1miles
2,807m
145,000,000
6
Line E
1999
2003
21
52.3km / 32.5miles
2,615m
60,000,000

Questions and formulas:
Question: What is the average opened year of the line with 59 stations served and more than 145,000,000 journeys made per annum?
Formula: AVERAGE(FILTER(B1, (D1=59)*(G1>145000000)))
Formula2: AVERAGE(FILTER(B2:B6, (D2:D6=59)*(G2:G6>145000000)))
Level: easy
Question: What is the average opened year of line e, which had their last extension before 2003?
Formula: AVERAGE(FILTER(B1, (A1="line e")*(C1<2003)))
Formula2: AVERAGE(FILTER(B2:B6, (A2:A6="line e")*(C2:C6<2003)))
Level: easy