Table:
0
A
B
C
D
E
F
1
Number
Locomotive type
Wheel arrangement
Builder
Entered Service
Withdrawn
2
1
Steam
0-4-2 Tank
Jubb Engineering
1922
1928
3
471
Steam
4-4-2 Atlantic
F & A Schwab
1928
1970
4
260
Steam
2-6-0 Mogul
F & A Schwab & Henry Greenly
1939
1975
5
5060
Battery Electric
Bo'2'
Tom Smith
1974
1987
6
7007
Battery Electric
Bo'2'
Tom Smith
1976
1987

Questions and formulas:
Question: When did the tom smith built train enter service with a number under 7007?
Formula: LET(query1,LET(query1,FILTER(A1:F1,D1="tom smith"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<7007))
Formula2: LET(query1,LET(query1,FILTER(A2:F6,D2:D6="tom smith"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<7007))
Level: hard