Table:
0
A
B
C
D
E
F
G
1
Stage
Winner
General classification
Points Classification
Mountains Classification
Sprints Classification
Team Classification
2
1
Alejandro Valverde Óscar Freire
Alejandro Valverde Óscar Freire
Alejandro Valverde Óscar Freire
Gonzalo Rabuñal
Christian Meier
Team RadioShack
3
2
Alejandro Valverde Óscar Freire
Alejandro Valverde Óscar Freire
Alejandro Valverde Óscar Freire
Gonzalo Rabuñal
Christian Meier
Team RadioShack
4
3
Francesco Gavazzi
Óscar Freire
Óscar Freire
Gonzalo Rabuñal
Christian Meier
Team RadioShack
5
4
Samuel Sánchez
Alejandro Valverde Chris Horner
Alejandro Valverde Samuel Sánchez
Amets Txurruka
Christian Meier
Team RadioShack
6
5
Joaquin Rodriguez
Alejandro Valverde Chris Horner
Alejandro Valverde Samuel Sánchez
Amets Txurruka
Christian Meier
Team RadioShack
7
6
Chris Horner
Chris Horner
Alejandro Valverde Samuel Sánchez
Gonzalo Rabuñal
Christian Meier
Team HTC-Columbia

Questions and formulas:
Question: How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?
Formula: ROWS(UNIQUE(FILTER(F1, B1="Joaquin Rodriguez")))
Formula2: ROWS(UNIQUE(FILTER(F2:F7, B2:B7="Joaquin Rodriguez")))
Level: medium
Question: Who led team classification during the stage whose winner was Chris Horner?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="Chris Horner"),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,B2:B7="Chris Horner"),7))
Level: medium
Question: Who led sprints classification when Chris Horner led general classification?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,C1="Chris Horner"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,C2:C7="Chris Horner"),6))
Level: medium