Table:
0
A
B
C
D
E
1
Class
Wheels
Date
No. built
Loco Nos.
2
H1
4-4-2
1905-6
5
37-41
3
C3
0-6-0
1906
10
300-309
4
I1
4-4-2T
1906-7
20
1-10,595-604
5
I2
4-4-2T
1907-8
10
11-20
6
I3
4-4-2T
1907-13
27
21-30,75-91
7
I4
4-4-2T
1908
5
31-35
8
J1
4-6-2T
1910
1
325
9
H2
4-4-2
1911-2
6
421-6

Questions and formulas:
Question: On what date were 5 built with 4-4-2t wheels?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="4-4-2t"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=5))
Formula2: LET(query1,LET(query1,FILTER(A2:E9,B2:B9="4-4-2t"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=5))
Level: hard
Question: On what date was the number of locomotives 421-6?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="421-6"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,E2:E9="421-6"),3))
Level: medium
Question: How many were built with a locomotive number of 11-20?
Formula: SUMIFS(D1,E1,"11-20")
Formula2: SUMIFS(D2:D9,E2:E9,"11-20")
Level: easy
Question: On what date were more than 5 built with 4-4-2 wheels?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="4-4-2"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>5))
Formula2: LET(query1,LET(query1,FILTER(A2:E9,B2:B9="4-4-2"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>5))
Level: hard
Question: On what date were less than 10 built with a locomotive number of 31-35?
Formula: LET(query1,LET(query1,FILTER(A1:E1,E1="31-35"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<10))
Formula2: LET(query1,LET(query1,FILTER(A2:E9,E2:E9="31-35"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<10))
Level: hard