Table:
0
A
B
C
D
E
F
G
1
Episode
Original title
Directed by
Written by
Original airdate
Duration
Viewership
2
8
" Testing Times "
Dewi Humphreys
Jim Sullivan
15September2006
30 minutes
5.04 million
3
9
" Here's to You, Mrs Boyce "
Dewi Humphreys
John Sullivan
22September2006
30 minutes
4.79 million
4
10
" Bothered and Bewildered "
Dewi Humphreys
Derren Litten and John Sullivan
29September2006
30 minutes
4.77 million
5
11
" Mother Earth "
Dewi Humphreys
Jim Sullivan
6October2006
30 minutes
5.01 million
6
12
" Schoolboy French "
Dewi Humphreys
James Windett and John Sullivan
13October2006
30 minutes
4.96 million
7
13
" More Questions Than Answers "
Dewi Humphreys
Paul Alexander and John Sullivan
20October2006
30 minutes
3.90 million

Questions and formulas:
Question: What was the title of the episode with 5.04 million viewers?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,G1="5.04 million"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,G2:G7="5.04 million"),2))
Level: medium
Question: What was the first airdate with a viewership of 4.77 million?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,G1="4.77 million"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,G2:G7="4.77 million"),5))
Level: medium
Question: How many episodes  of 30 minutes were written by John Sullivan?
Formula: ROWS(UNIQUE(FILTER(F1, D1="John Sullivan")))
Formula2: ROWS(UNIQUE(FILTER(F2:F7, D2:D7="John Sullivan")))
Level: medium
Question: Who was the director when the writer was John Sullivan?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="John Sullivan"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,D2:D7="John Sullivan"),3))
Level: medium