Table:
0
A
B
C
D
E
F
G
1
HR no.
HR name
CR no.
LMS no.
Built
Works
Withdrawn
2
70
River Ness
938
14756
9/1915
Hawthorn Leslie 3095
10/1939
3
71
River Spey
939
14757
9/1915
Hawthorn Leslie 3096
12/1936
4
(72)
(River Tay)
940
14758
11/1915
Hawthorn Leslie 3097
9/1945
5
(73)
(River Findhorn)
941
14759
11/1915
Hawthorn Leslie 3098
2/1939
6
(74)
(River Garry)
942
14760
12/1915
Hawthorn Leslie 3099
12/1946
7
(75)
(River Tummel)
943
14761
12/1915
Hawthorn Leslie 3100
10/1939

Questions and formulas:
Question: What's the HR number when the LMS number is 14758?
Formula: LET(query1,SUMMARIZE(A1,SUMX(D1)),FILTER(query1,CHOOSECOLS(query1,2)=14758))
Formula2: LET(query1,SUMMARIZE(A2:A7,SUMX(D2:D7)),FILTER(query1,CHOOSECOLS(query1,2)=14758))
Level: hard
Question: What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?
Formula: SUM(FILTER(C1, (F1="hawthorn leslie 3100")*(D1<14761)))
Formula2: SUM(FILTER(C2:C7, (F2:F7="hawthorn leslie 3100")*(D2:D7<14761)))
Level: easy
Question: What's the HR Number when the LMS number is 14757 and has a built of 9/1915?
Formula: LET(query1,LET(query1,FILTER(A1:G1,E1="9/1915"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=14757))
Formula2: LET(query1,LET(query1,FILTER(A2:G7,E2:E7="9/1915"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=14757))
Level: hard
Question: What's the built date when the CR number is more than 940 and the LMS number is 14760?
Formula: LET(query1,SUMMARIZE(E1,SUMX(C1),SUMX(D1)),FILTER(query1,(CHOOSECOLS(query1,2)>940)*(CHOOSECOLS(query1,3)=14760)))
Formula2: LET(query1,SUMMARIZE(E2:E7,SUMX(C2:C7),SUMX(D2:D7)),FILTER(query1,(CHOOSECOLS(query1,2)>940)*(CHOOSECOLS(query1,3)=14760)))
Level: hard