Table:
0
A
B
C
D
E
F
G
H
1
Name
Country
Type
Moving from
Transfer window
Ends
Transfer fee
Source
2
Codina
ESP
Promoted
Youth system
Summer
2010
Youth system
Realmadrid
3
Torres
ESP
Promoted
Youth system
Summer
2012
Youth system
Realmadrid
4
Agus
ESP
Promoted
Youth system
Summer
2010
Youth system
Realmadrid
5
Granero
ESP
Promoted
Youth system
Summer
2011
Youth system
Realmadrid
6
de la Red
ESP
Promoted
Youth system
Summer
2011
Youth system
Realmadrid
7
Adrián
ESP
Promoted
Youth system
Summer
2011
Youth system
Realmadrid
8
Soldado
ESP
Loan return
Osasuna
Summer
2012
N/A
Realmadrid
9
Baptista
BRA
Loan return
Arsenal
Summer
2010
N/A
Realmadrid
10
Balboa
EQG
Loan Return
RacingSantander
Summer
2012
N/A
Realmadrid
11
Robben
NED
Signed
Chelsea
Summer
2012
€ 36M
Realmadrid
12
Pepe
POR
Signed
Porto
Summer
2012
€ 30M
Realmadrid
13
Sneijder
NED
Signed
Ajax
Summer
2012
€ 27M
Realmadrid
14
Drenthe
NED
Signed
Feyenoord
Summer
2012
€ 14M
Realmadrid
15
Heinze
ARG
Signed
Manchester United
Summer
2011
€ 12M
Realmadrid
16
Saviola
ARG
Signed
Barcelona
Summer
2011
Free
Realmadrid
17
Metzelder
GER
Signed
Borussia Dortmund
Summer
2010
Free
Realmadrid
18
Dudek
POL
Signed
Liverpool
Summer
2009
Free
Realmadrid
19
Adrián
ESP
Loan Return
Celta de Vigo
Winter
2011
N/A
Realmadrid

Questions and formulas:
Question: What country has signed type moving from porto?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,(C1="signed")*(D1="porto")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H19,(C2:C19="signed")*(D2:D19="porto")),2))
Level: medium
Question: Which transfer window was moving from borussia dortmund?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,D1="borussia dortmund"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H19,D2:D19="borussia dortmund"),5))
Level: medium
Question: What is moving from esp with transfer fee of youth system?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,(B1="esp")*(G1="youth system")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H19,(B2:B19="esp")*(G2:G19="youth system")),4))
Level: medium
Question: What is the transfer window in esp with promoted type and more than 2010 ends?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,(B1="esp")*(C1="promoted")*(F1>2010)),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H19,(B2:B19="esp")*(C2:C19="promoted")*(F2:F19>2010)),5))
Level: medium