Table:
0
A
B
C
D
E
1
film id
title
studio
director
gross in dollar
2
1
ET the Extra-Terrestrial
Universal
Steven Spielberg
435110554
3
2
Tootsie
Columbia
Sydney Pollack
177200000
4
3
An Officer and a Gentleman
Paramount / Lorimar
Taylor Hackford
129795554
5
4
Rocky III
United Artists
Sylvester Stallone
125049125
6
5
Porky's
20th Century Fox
Bob Clark
109492484
7
6
Star Trek II: The Wrath of Khan
Paramount
Nicholas Meyer
79912963
8
7
48 Hrs
Paramount
Walter Hill
78868508
9
8
Poltergeist
MGM
Tobe Hooper
76606280
10
9
The Best Little Whorehouse in Texas
Universal / RKO
Colin Higgins
69701637
11
10
Annie
Columbia / Rastar
John Huston
57059003
12
11
The Verdict
20th Century Fox
Sidney Lumet
53977250
13
12
Gandhi
Columbia
Richard Attenborough
52767889
14
13
First Blood
Orion / Carolco
Ted Kotcheff
47212904

Questions and formulas:
Question: How many film are there?
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: Count the number of films.
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: List the distinct director of all films.
Formula: UNIQUE(D1)
Formula2: UNIQUE(D2:D14)
Level: easy
Question: What are the different film Directors?
Formula: UNIQUE(D1)
Formula2: UNIQUE(D2:D14)
Level: easy
Question: What is the average ticket sales gross in dollars of films?
Formula: AVERAGE(E1)
Formula2: AVERAGE(E2:E14)
Level: easy
Question: Return the average gross sales in dollars across all films.
Formula: AVERAGE(E1)
Formula2: AVERAGE(E2:E14)
Level: easy
Question: What is the name of teh studio that created the most films?
Formula: LET(a,HSTACK(B1,C1),b,C1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(C1,SUMX(A1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B14,C2:C14),b,C2:C14,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(C2:C14,SUMX(A2:A14)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: number of films in total
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: How many films?
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: Each film's director
Formula: UNIQUE(HSTACK(D1,A1))
Formula2: UNIQUE(HSTACK(D2:D14,A2:A14))
Level: easy
Question: Films and their directors.
Formula: UNIQUE(HSTACK(A1,D1))
Formula2: UNIQUE(HSTACK(A2:A14,D2:D14))
Level: easy
Question: The number of films.
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: The director for each film.
Formula: UNIQUE(HSTACK(D1,A1))
Formula2: UNIQUE(HSTACK(D2:D14,A2:A14))
Level: easy
Question: The films and the corresponding directors.
Formula: UNIQUE(HSTACK(A1,D1))
Formula2: UNIQUE(HSTACK(A2:A14,D2:D14))
Level: easy