Table:
0
A
B
C
D
E
1
Manufacturer
Type
Quantity
M&SWJ Nos.
GWR Nos.
2
Beyer, Peacock & Co.
0-4-4T
1
15
23
3
Beyer, Peacock & Co.
2-6-0
1
16
24
4
Sharp, Stewart & Co.
4-4-4T
2
17–18
25, 27
5
Dübs & Co.
0-6-0T
2
13–14
825, 843
6
Beyer, Peacock & Co.
0-6-0
10
19–28
1003–1011, 1013
7
North British Locomotive Co.
4-4-0
9
1–8, 31
1119–1126, 1128
8
Dübs & Co.
4-4-0
1
9
1127
9
Dübs & Co.
2-4-0
3
10–12
1334–1336

Questions and formulas:
Question: Which GWR numbers had a quantity less than 2 when the M&SWJ number was 9?
Formula: LET(query1,LET(query1,FILTER(A1:E1,D1=9),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,3)))),FILTER(query1,CHOOSECOLS(query1,2)<2))
Formula2: LET(query1,LET(query1,FILTER(A2:E9,D2:D9=9),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,3)))),FILTER(query1,CHOOSECOLS(query1,2)<2))
Level: hard
Question: Which manucfaturer's type was 2-6-0?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="2-6-0"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,B2:B9="2-6-0"),1))
Level: medium