Table:
0
A
B
C
D
E
F
G
H
1
№
#
Title
Directed by
Written by
Original air date
Production code
U.S. viewers (millions)
2
487
1
" The Falcon and the D'ohman "
Matthew Nastuk
Justin Hurwitz
September25,2011
NABF16
8.08
3
488
2
" Bart Stops to Smell the Roosevelts "
Steven Dean Moore
Tim Long
October2,2011
NABF17
6.19
4
490
4
" Replaceable You "
Mark Kirkland
Stephanie Gillis
November6,2011
NABF21
7.97
5
491
5
" The Food Wife "
Timothy Bailey
Matt Selman
November13,2011
NABF20
7.50
6
492
6
" The Book Job "
Bob Anderson
Dan Vebber
November20,2011
NABF22
5.74
7
493
7
" The Man in the Blue Flannel Pants "
Steven Dean Moore
Jeff Westbrook
November27,2011
PABF01
5.61
8
494
8
" The Ten-Per-Cent Solution "
Michael Polcino
Deb Lacusta & Dan Castellaneta
December4,2011
PABF02
9.01
9
495
9
" Holidays of Future Passed "
Rob Oliver
J. Stewart Burns
December11,2011
NABF18
6.43
10
496
10
" Politically Inept, with Homer Simpson "
Mark Kirkland
John Frink
January8,2012
PABF03
5.07
11
497
11
" The D'oh-cial Network "
Chris Clements
J. Stewart Burns
January15,2012
PABF04
11.48
12
498
12
" Moe Goes from Rags to Riches "
Bob Anderson
Tim Long
January29,2012
PABF05
5.12
13
499
13
" The Daughter Also Rises "
Chuck Sheetz
Rob LaZebnik
February12,2012
PABF06
4.26
14
500
14
" At Long Last Leave "
Matthew Nastuk
Michael Price
February19,2012
PABF07
5.77
15
501
15
" Exit Through the Kwik-E-Mart "
Steven Dean Moore
Marc Wilmore
March4,2012
PABF09
5.09
16
502
16
" How I Wet Your Mother "
Lance Kramer
Billy Kimball & Ian Maxtone-Graham
March11,2012
PABF08
4.97
17
503
17
" Them, Robot "
Michael Polcino
Michael Price
March18,2012
PABF10
5.25
18
504
18
" Beware My Cheating Bart "
Mark Kirkland
Ben Joseph
April15,2012
PABF11
4.86
19
506
20
" The Spy Who Learned Me "
Bob Anderson
Marc Wilmore
May6,2012
PABF13
4.84
20
507
21
" Ned 'n Edna's Blend "
Chuck Sheetz
Jeff Westbrook
May13,2012
PABF15
4.07

Questions and formulas:
Question: Who directed the episode whose production code is pabf05?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,G1="PABF05"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H20,G2:G20="PABF05"),4))
Level: medium
Question: What is the last number in season of the episodes written by Dan Vebber?
Formula: SUMIFS(B1,E1,"Dan Vebber")
Formula2: SUMIFS(B2:B20,E2:E20,"Dan Vebber")
Level: easy
Question: What is the number in season of the episode whose production code is pabf05?
Formula: SUMIFS(B1,G1,"PABF05")
Formula2: SUMIFS(B2:B20,G2:G20,"PABF05")
Level: easy