Table:
0
A
B
C
D
E
F
G
H
I
J
1
Finish
Race
Distance
Jockey
Time
Victory Margin (in lengths)
Runner up
Track
Surface
Date
2
1st
Maiden
1 1⁄16 mi
Jeremy Rose
1:40.33
11 1⁄4
Dr. Cal
Saratoga Race Course
Turf
9/3/07
3
1st
Allowance
1mi
Kent Desormeaux
1:35.66
12
Heaven's Awesome
Gulfstream Park
Dirt
3/5/08
4
1st
Florida Derby
1 1⁄8 mi
Kent Desormeaux
1:48.16
5
Smooth Air
Gulfstream Park
Dirt
3/29/08
5
1st
Kentucky Derby
1 1⁄4 mi
Kent Desormeaux
2:01.82
4 3⁄4
Eight Belles
Churchill Downs
Dirt
5/3/08
6
1st
Preakness
1 3⁄16 mi
Kent Desormeaux
1:54.80
5 1⁄4
Macho Again
Pimlico Race Course
Dirt
5/17/08
7
9th
Belmont Stakes
1 1⁄2 mi
Kent Desormeaux
N/A
N/A
Da' Tara (1st)
Belmont Park
Dirt
6/7/08
8
1st
Haskell Invitational
1 1⁄8 mi
Kent Desormeaux
1:48.31
1 3⁄4
Coal Play
Monmouth Park
Dirt
8/3/08

Questions and formulas:
Question: What is the distance for jockey Kent Desormeaux on 6/7/08?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:J1,(D1="Kent Desormeaux")*(J1="6/7/08")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:J8,(D2:D8="Kent Desormeaux")*(J2:J8="6/7/08")),3))
Level: medium
Question: At 1:48.16 what was the number of track time?
Formula: ROWS(UNIQUE(FILTER(H1, E1="1:48.16")))
Formula2: ROWS(UNIQUE(FILTER(H2:H8, E2:E8="1:48.16")))
Level: medium
Question: With a date of 8/3/08, what was the length of the victory margin?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:J1,J1="8/3/08"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:J8,J2:J8="8/3/08"),6))
Level: medium