Table:
0
A
B
C
D
E
F
G
1
Year
Team
Co-Drivers
Class
Laps
Pos.
Class Pos.
2
1997
GT1 Lotus Racing
Jan Lammers Alexander Grau
GT1
121
DNF
DNF
3
2000
Carsport Holland
David Hart Hans Hugenholtz
GTS
317
13th
6th
4
2002
Team Carsport Holland Racing Box
Gabriele Matteuzzi Anthony Kumpen
GTS
93
DNF
DNF
5
2003
Carsport America
Anthony Kumpen David Hart
GTS
10
DNF
DNF
6
2004
Barron Connor Racing
Ange Barde Jean-Denis Délétraz
GTS
200
DNF
DNF
7
2006
Spyker Squadron
Jeroen Bleekemolen Jonny Kane
GT2
202
DNF
DNF
8
2007
Spyker Squadron
Jaroslav Janiš Jonny Kane
GT2
70
DNF
DNF
9
2008
IPB Spartak Racing Reiter Engineering
Peter Kox Roman Rusinov
GT1
266
NC
NC

Questions and formulas:
Question: What was the year of the finish with the class pos of 6th and laps smaller than 317?
Formula: LET(query1,LET(query1,FILTER(A1:G1,G1="6th"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)<317))
Formula2: LET(query1,LET(query1,FILTER(A2:G9,G2:G9="6th"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)<317))
Level: hard