Table:
0
A
B
C
D
E
F
G
1
1st built
1913 Class
W.A.
No. Built
Builder
Date
LNER Class
2
474
—
2-2-2
2
Neilson
1876
—
3
476
M
4-4-0
12
Neilson (8) NBR Cowlairs (4)
1877–79
D27/D28
4
494
P
4-4-0T
3
Neilson
1879
D50
5
72
R
4-4-0T
30
NBR Cowlairs
1880–84
D51
6
157
P
0-4-2T
6
NBR Cowlairs
1877
G8
7
100
C
0-6-0
32
NBR Cowlairs (12) Neilson (20)
1876–77
J32
8
34
D
0-6-0
13
NBR Cowlairs
1879
J34
9
497
D
0-6-0
88
NBR Cowlairs (83) Dübs (5)
1879–83
J34
10
165
R
0-6-0T
25
NBR Cowlairs
1875–78
J82
11
546
G
0-4-0T
2
Neilson
1882
Y9

Questions and formulas:
Question: What is the 1913 class of locomotive that has a 1st built value under 494 and WA of 4-4-0t?
Formula: LET(query1,LET(query1,FILTER(A1:G1,C1="4-4-0t"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<494))
Formula2: LET(query1,LET(query1,FILTER(A2:G11,C2:C11="4-4-0t"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<494))
Level: hard