Table:
0
A
B
C
D
E
F
G
1
No. in series
Title
Directed by
Written by
Original air date
Production code
U.S. viewers (millions)
2
1
"Pilot"
Ron Hughart
Seth MacFarlane , Mike Barker & Matt Weitzman
February 6, 2005
1AJN01
15.10
3
2
"Threat Levels"
Brent Woods
David Zuckerman
May 1, 2005
1AJN02
9.47
4
3
"Stan Knows Best"
Pam Cooke
Mike Barker & Matt Weitzman
May 8, 2005
1AJN03
8.23
5
4
"Francine's Flashback"
Caleb Meurer & Brent Woods
Rick Wiener & Kenny Schwartz
May 15, 2005
1AJN05
7.84
6
5
"Roger Codger"
Albert Calleros
Dan Vebber
June 5, 2005
1AJN04
6.09
7
6
"Homeland Insecurity"
Rodney Clouden
Neal Boushell & Sam O'Neal
June 12, 2005
1AJN06
6.85

Questions and formulas:
Question: Who wrote the episode with production code 1AJN05?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,F1="1AJN05"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G7,F2:F7="1AJN05"),4))
Level: medium
Question: How many different series numbers are there for the episode seen by 7.84 million people in the US?
Formula: ROWS(UNIQUE(FILTER(A1, G1=7.84)))
Formula2: ROWS(UNIQUE(FILTER(A2:A7, G2:G7=7.84)))
Level: medium
Question: How many millions of people in the US saw the episode titled "Francine's Flashback"?
Formula: SUMIFS(G1,B1,"Francine's Flashback")
Formula2: SUMIFS(G2:G7,B2:B7,"Francine's Flashback")
Level: easy
Question: What's the series number of the episode written by Dan Vebber?
Formula: SUMIFS(A1,D1,"Dan Vebber")
Formula2: SUMIFS(A2:A7,D2:D7,"Dan Vebber")
Level: easy
Question: How many different titles are there of episodes that have been seen by 7.84 million people in the US/
Formula: LET(query1,SUMMARIZE(B1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,2)=7.84))
Formula2: LET(query1,SUMMARIZE(B2:B7,SUMX(G2:G7)),FILTER(query1,CHOOSECOLS(query1,2)=7.84))
Level: hard
Question: When did 6.09 million people in the US see the original airing of an episode of the show?
Formula: LET(query1,SUMMARIZE(E1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,2)=6.09))
Formula2: LET(query1,SUMMARIZE(E2:E7,SUMX(G2:G7)),FILTER(query1,CHOOSECOLS(query1,2)=6.09))
Level: hard