Table:
0
A
B
C
D
E
F
G
H
1
No.
Title
Directed by
Written by
U.S. viewers (million)
Rank (week)
Original air date
Production code
2
1
"First Responders"
Davis Guggenheim
David Mamet
18.50
10
March7,2006
1ALF79
3
2
"Stress"
Guy Ferland
David Mamet
18.07
5
March14,2006
1ALF01
4
3
"200th Hour"
Steve Gomer
Sharon Lee Watson & Carol Flint
15.50
10
March21,2006
1ALF04
5
4
"True Believers"
Oz Scott
Shawn Ryan & Eric L. Haney
16.08
13
March28,2006
1ALF02
6
5
"Non-Permissive Environment"
Ron Lagomarsino
Lynn Mamet & Paul Redford
15.44
10
April4,2006
1ALF03
7
6
"Security"
David Mamet
David Mamet
14.12
12
April11,2006
1ALF06
8
7
"Dedication"
Helen Shaver
Paul Redford & Sharon Lee Watson
15.62
10
April18,2006
1ALF07
9
8
"SERE"
Steven DePaul
Lynn Mamet & Carol Flint
13.87
18
April25,2006
1ALF08
10
9
"Eating the Young"
J. Miller Tobin
Sterling Anderson
14.06
18
May2,2006
1ALF05
11
10
"Unannounced"
Bill L. Norton
Paul Redford & Emily Halpern
14.18
18
May9,2006
1AFL09
12
11
"Exposure"
Guy Norman Bee
Sharon Lee Watson & Dan Hindmarch
12.33
26
May9,2006
1ALF10
13
12
"Morale, Welfare and Recreation"
Félix Enríquez Alcalá
Sterling Anderson & Paul Redford
14.04
14
May16,2006
1ALF11

Questions and formulas:
Question: What is the production code for the episode that had 18.07 million viewers? 
Formula: LET(query1,SUMMARIZE(H1,SUMX(E1)),FILTER(query1,CHOOSECOLS(query1,2)=18.07))
Formula2: LET(query1,SUMMARIZE(H2:H13,SUMX(E2:E13)),FILTER(query1,CHOOSECOLS(query1,2)=18.07))
Level: hard
Question: What is the weeks rank for the episode with the production code 1alf05? 
Formula: SUMIFS(F1,H1,"1ALF05")
Formula2: SUMIFS(F2:F13,H2:H13,"1ALF05")
Level: easy
Question: How many air dates does the episode with 15.50 million viewers have? 
Formula: ROWS(UNIQUE(FILTER(G1, E1=15.5)))
Formula2: ROWS(UNIQUE(FILTER(G2:G13, E2:E13=15.5)))
Level: medium
Question: Who wrote the episode with 18.07 million viewers? 
Formula: LET(query1,SUMMARIZE(D1,SUMX(E1)),FILTER(query1,CHOOSECOLS(query1,2)=18.07))
Formula2: LET(query1,SUMMARIZE(D2:D13,SUMX(E2:E13)),FILTER(query1,CHOOSECOLS(query1,2)=18.07))
Level: hard