Table:
0
A
B
C
D
E
F
G
H
1
No. in series
No. in season
Title
Directed by
Written by
Original air date
Production code
U.S. viewers (millions)
2
97
1
"100 A.D." (Part 1)
Tim Parsons
Keith Heisler
October3,2010
5AJN14
6.16
3
98
2
"Son of Stan" (Part 2)
Chris Bennett
Erik Sommers
October10,2010
5AJN17
5.36
4
99
3
" Best Little Horror House in Langley Falls "
John Aoshima & Jansen Yee
Eric Weinberg
November7,2010
5AJN19
6.30
5
100
4
" Stan's Food Restaurant "
Josue Cervantes
Brian Boyle
November14,2010
5AJN16
5.38
6
101
5
" White Rice "
Bob Bowen
Rick Wiener & Kenny Schwartz
November21,2010
5AJN15
4.86
7
102
6
"There Will Be Bad Blood"
Joe Daniello
Murray Miller & Judah Miller
November28,2010
5AJN20
6.13
8
103
7
"The People vs. Martin Sugar"
Pam Cooke
Jonathan Fener
December5,2010
5AJN05
5.31
9
104
8
" For Whom the Sleigh Bell Tolls "
Bob Bowen
Erik Durbin
December12,2010
5AJN22
6.22
10
105
9
" Fart-Break Hotel "
Rodney Clouden
Chris McKenna & Matt McKenna
January16,2011
5AJN18
3.54
11
106
10
" Stanny Boy and Frantastic "
Pam Cooke
Laura McCreary
January23,2011
5AJN13
4.81
12
107
11
" A Piñata Named Desire "
Bob Bowen
Chris McKenna & Matt McKenna
February13,2011
5AJN07
3.93
13
108
12
" You Debt Your Life "
Chris Bennett
Erik Sommers
February20,2011
5AJN09
4.25
14
109
13
" I Am the Walrus "
Tim Parsons
Keith Heisler
March27,2011
5AJN21
4.99
15
110
14
"School Lies"
Rodney Clouden
Brian Boyle
April3,2011
6AJN03
3.59
16
111
15
"License to Till"
John Aoshima & Jansen Yee
Matt Fusfeld & Alex Cuthbertson
April10,2011
6AJN04
3.35
17
112
16
" Jenny Fromdabloc "
Bob Bowen
Laura McCreary
April17,2011
6AJN08
4.74
18
113
17
" Home Wrecker "
Joe Daniello
Alan R. Cohen & Alan Freedland
May8,2011
6AJN05
3.29
19
114
18
"Flirting with Disaster"
Pam Cooke
Keith Heisler
May15,2011
6AJN06
3.89

Questions and formulas:
Question: what number is the episode "there will be bad blood" in the series?
Formula: MINIFS(A1,C1,"There Will Be Bad Blood")
Formula2: MINIFS(A2:A19,C2:C19,"There Will Be Bad Blood")
Level: easy
Question: who wrote the episode having joe daniello as director with production code 6ajn05?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,(D1="Joe Daniello")*(G1="6AJN05")),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H19,(D2:D19="Joe Daniello")*(G2:G19="6AJN05")),5))
Level: medium
Question: what title was given to the episode with production code 6ajn08?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,G1="6AJN08"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H19,G2:G19="6AJN08"),3))
Level: medium
Question: what is the production code of the episode viewed by 5.36 million u.s. people? 
Formula: LET(query1,SUMMARIZE(G1,SUMX(H1)),FILTER(query1,CHOOSECOLS(query1,2)=5.36))
Formula2: LET(query1,SUMMARIZE(G2:G19,SUMX(H2:H19)),FILTER(query1,CHOOSECOLS(query1,2)=5.36))
Level: hard