Table:
0
A
B
C
D
E
1
Class
Railway number(s)
Quantity
Year(s) of manufacture
Axle arrangement ( UIC )
2
None
I–II
2
1898
Bo′2′ g2t
3
None
III
1
1900
Bo g2t
4
MC
3050, 5130
2
1900
A1A g2t
5
MBCC
8856–8859
4
1900–1902
Bo′2′ g2t
6
MBCL
I
1
1903
A1 n2v

Questions and formulas:
Question: what is the quantity when the year of manufacture is 1900 and the class is mc?
Formula: SUM(FILTER(C1, (D1=1900)*(A1="mc")))
Formula2: SUM(FILTER(C2:C6, (D2:D6=1900)*(A2:A6="mc")))
Level: easy
Question: what is the class when the quantity is 4?
Formula: LET(query1,SUMMARIZE(A1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)=4))
Formula2: LET(query1,SUMMARIZE(A2:A6,SUMX(C2:C6)),FILTER(query1,CHOOSECOLS(query1,2)=4))
Level: hard