Table:
0
A
B
C
D
E
F
1
Rank
Town
Population
Year
Borough
Definition
2
1
Harrogate
71,594
2001
Harrogate
Town
3
2
Scarborough
50,135
2001
Scarborough
Town
4
3
Acomb
22,215
2001
York
Town
5
4
Ripon
15,922
2001
Harrogate
Civil Parish
6
5
Northallerton
15,741
2001
Hambleton
Civil Parish
7
6
Knaresborough
14,740
2001
Harrogate
Civil Parish
8
7
Skipton
14,313
2001
Craven
Civil Parish
9
8
Whitby
13,594
2001
Scarborough
Civil Parish
10
9
Selby
13,012
2001
Selby
Civil Parish
11
10
Richmond
8,178
2001
Richmondshire
Civil Parish
12
11
Tadcaster
7,000
2001
Selby
Civil Parish
13
12
Norton
6,943
2001
Ryedale
Civil Parish
14
13
Pickering
6,846
2001
Ryedale
Civil Parish
15
14
Filey
6,819
2001
Scarborough
Civil Parish
16
15
Sherburn-in-Elmet
6,221
2001
Selby
Civil Parish

Questions and formulas:
Question: Which Year is the highest one that has a Population larger than 13,012, and a Borough of richmondshire?
Formula: LET(query1,LET(query1,FILTER(A1:F1,E1="richmondshire"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,3)))),FILTER(query1,CHOOSECOLS(query1,2)>13012))
Formula2: LET(query1,LET(query1,FILTER(A2:F16,E2:E16="richmondshire"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,3)))),FILTER(query1,CHOOSECOLS(query1,2)>13012))
Level: hard
Question: How many people live in Norton?
Formula: SUMIFS(C1,B1,"norton")
Formula2: SUMIFS(C2:C16,B2:B16,"norton")
Level: easy
Question: Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?
Formula: LET(query1,LET(query1,FILTER(A1:F1,(E1="harrogate")*(F1="civil parish")),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<6))
Formula2: LET(query1,LET(query1,FILTER(A2:F16,(E2:E16="harrogate")*(F2:F16="civil parish")),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<6))
Level: hard
Question: Which Definition has a Rank smaller than 12, and a Town of tadcaster?
Formula: LET(query1,LET(query1,FILTER(A1:F1,B1="tadcaster"),SUMMARIZE(CHOOSECOLS(query1,6),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<12))
Formula2: LET(query1,LET(query1,FILTER(A2:F16,B2:B16="tadcaster"),SUMMARIZE(CHOOSECOLS(query1,6),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<12))
Level: hard
Question: Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?
Formula: SUM(FILTER(A1, (E1="richmondshire")*(C1>8178)))
Formula2: SUM(FILTER(A2:A16, (E2:E16="richmondshire")*(C2:C16>8178)))
Level: easy