Table:
0
A
B
C
D
E
1
Number
Builder
Type
Date
Works number
2
1
Avonside Engine Company
4-4-0
September 1870
808
3
2
Canadian Engine & Machinery Company
4-4-0
November 1870
83
4
3
Canadian Engine & Machinery Company
4-4-0
December 1870
84
5
4
Canadian Engine & Machinery Company
4-4-0
early 1871
85
6
5
Canadian Engine & Machinery Company
4-4-0
March 1871
86
7
6
Canadian Engine & Machinery Company
4-4-0
May 1871
87
8
7
Canadian Engine & Machinery Company
4-4-0
May 1871
88
9
8
Avonside Engine Company
4-6-0
December 1871
867
10
9
Avonside Engine Company
0-6-6-0 Fairlie
December 1871
864 & 865
11
10
Avonside Engine Company
4-6-0
early 1873
Uncertain but probably one of 931-934
12
11
Avonside Engine Company
4-6-0
1872
Uncertain but probably one of 935-939
13
12
Avonside Engine Company
4-6-0
early 1873?
Uncertain but probably one of 935-939

Questions and formulas:
Question: Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="canadian engine & machinery company"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<3))
Formula2: LET(query1,LET(query1,FILTER(A2:E13,B2:B13="canadian engine & machinery company"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<3))
Level: hard
Question: Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?
Formula: LET(query1,LET(query1,FILTER(A1:E1,(B1="avonside engine company")*(C1="4-6-0")*(D1="december 1871")),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<12))
Formula2: LET(query1,LET(query1,FILTER(A2:E13,(B2:B13="avonside engine company")*(C2:C13="4-6-0")*(D2:D13="december 1871")),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)<12))
Level: hard
Question: Which Type has a Builder of avonside engine company, and a Number of 9?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="avonside engine company"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)=9))
Formula2: LET(query1,LET(query1,FILTER(A2:E13,B2:B13="avonside engine company"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)=9))
Level: hard
Question: Which Date has a Type of 4-6-0, and a Number larger than 11?
Formula: LET(query1,LET(query1,FILTER(A1:E1,C1="4-6-0"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)>11))
Formula2: LET(query1,LET(query1,FILTER(A2:E13,C2:C13="4-6-0"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)>11))
Level: hard
Question: Which Builder has a Date of early 1871?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="early 1871"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E13,D2:D13="early 1871"),2))
Level: medium