Table:
0
A
B
C
D
E
F
G
1
Class
Type
Fleet numbers
Quantity made
Manufacturer
Date made
Date withdrawn
2
1
2-4-0T
1–3
3
Sharp, Stewart & Co.
1881
1909–1926
3
2
4-6-0T
4–9
6
Neilson & Co.
1893
1931–1937
4
3
4-4-4T
10–11
2
Neilson, Reid & Co.
1902
1933
5
4
4-6-4T
12–15
4
Nasmyth, Wilson & Co.
1904
1953–1959
6
5
2-6-4T
16–20
5
Nasmyth, Wilson & Co.
1907
1940–1950
7
5A
2-6-4T
21, 2A, 3A
3
Nasmyth, Wilson & Co.
1912
1959

Questions and formulas:
Question: Which locomotive class had 5 items made?
Formula: LET(query1,SUMMARIZE(A1,SUMX(D1)),FILTER(query1,CHOOSECOLS(query1,2)=5))
Formula2: LET(query1,SUMMARIZE(A2:A7,SUMX(D2:D7)),FILTER(query1,CHOOSECOLS(query1,2)=5))
Level: hard
Question: Which manufacturer made a locomotive with a type of 4-6-4t?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="4-6-4t"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,B2:B7="4-6-4t"),5))
Level: medium