Table:
0
A
B
C
D
E
F
1
Number
Type
Seating
Diagram no
Lot no.
Weight
2
50000
Driving Motor Brake Second (DMBS)
62 2nd
632
30341
41tons3cwt ( lb or t)
3
50001–50048
Driving Motor Brake Second (DMBS)
62 2nd
516
30209
37tons10cwt ( lb or t)
4
50049
Driving Motor Brake Second (DMBS)
62 2nd
516
30459
37tons10cwt ( lb or t)
5
56000
Driving Trailer Composite with lavatory (DTCL)
12 1st + 62 2nd
641
30342
31tons3cwt ( lb or t)
6
56001–56049
Driving Trailer Composite with lavatory (DTCL)
12 1st + 62 2nd
641
30210
29tons10cwt ( lb or t)

Questions and formulas:
Question: Which vehicle has a Diagram of 516 or smaller, and a driving motor brake second (dmbs) type.
Formula: LET(query1,LET(query1,FILTER(A1:F1,B1="driving motor brake second (dmbs)"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>516))
Formula2: LET(query1,LET(query1,FILTER(A2:F6,B2:B6="driving motor brake second (dmbs)"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>516))
Level: hard