Table:
0
A
B
C
D
E
F
G
1
Home team
Home team score
Away team
Away team score
Venue
Crowd
Date
2
Geelong
7.13 (55)
South Melbourne
4.11 (35)
Kardinia Park
21,513
21 June 1952
3
Essendon
11.8 (74)
Melbourne
10.15 (75)
Windy Hill
16,000
21 June 1952
4
Collingwood
6.8 (44)
North Melbourne
8.12 (60)
Victoria Park
15,500
21 June 1952
5
St Kilda
5.11 (41)
Hawthorn
7.6 (48)
Junction Oval
7,500
21 June 1952
6
Footscray
6.9 (45)
Fitzroy
7.8 (50)
Western Oval
14,085
21 June 1952
7
Richmond
5.3 (33)
Carlton
5.9 (39)
Punt Road Oval
21,000
21 June 1952

Questions and formulas:
Question: Who was the home team when the away team scored 5.9 (39)?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="5.9 (39)"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,D2:D7="5.9 (39)"),2))
Level: medium