Table:
0
A
B
C
D
E
F
1
movie id
title
year
director
budget million
gross worldwide
2
1
The Boondock Saints
1999
Troy Duffy
6
30471
3
2
The Big Kahuna
1999
John Swanbeck
7
3728888
4
3
Storm Catcher
1999
Anthony Hickox
5
40500
5
4
Jill Rips
2000
Anthony Hickox
4
456774
6
5
The Whole Nine Yards
2000
Jonathan Lynn
41.3
106371651
7
6
Battlefield Earth
2000
Roger Christian
44
29725663
8
7
Get Carter
2000
Stephen Kay
63.6
19412993
9
8
The Art of War
2000
Christian Duguay
60
40400425
10
9
Agent Red
2000
Damian Lee
47
543356
11
10
3000 Miles to Graceland
2001
Demian Lichtenstein
62
18720175

Questions and formulas:
Question: Show all movie titles, years, and directors, ordered by budget.
Formula: SORTBY(CHOOSE({1,2,3},B1,C1,D1),E1,1)
Formula2: SORTBY(CHOOSE({1,2,3},B2:B11,C2:C11,D2:D11),E2:E11,1)
Level: easy
Question: What are the titles, years, and directors of all movies, ordered by budget in millions?
Formula: SORTBY(CHOOSE({1,2,3},B1,C1,D1),E1,1)
Formula2: SORTBY(CHOOSE({1,2,3},B2:B11,C2:C11,D2:D11),E2:E11,1)
Level: easy
Question: How many directors are there?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D11))
Level: easy
Question: Count the number of different directors.
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D11))
Level: easy
Question: Show all director names who have a movie in the year 1999 or 2000.
Formula: FILTER(D1,(C1=1999)+(C1=2000))
Formula2: FILTER(D2:D11,(C2:C11=1999)+(C2:C11=2000))
Level: easy
Question: Which directors had a movie in either 1999 or 2000?
Formula: FILTER(D1,(C1=1999)+(C1=2000))
Formula2: FILTER(D2:D11,(C2:C11=1999)+(C2:C11=2000))
Level: easy
Question: How many movies and directors are there?
Formula: HSTACK(SUM(A1), ROWS(UNIQUE(D1)))
Formula2: HSTACK(SUM(A2:A11), ROWS(UNIQUE(D2:D11)))
Level: hard
Question: How many directors in total?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D11))
Level: easy
Question: Title, director and id of the top grossing movie in 2000
Formula: LET(a,HSTACK(B1,D1,A1),b,A1,c,CHOOSECOLS(TAKE(SORT(LET(query1,FILTER(A1:F1,Year(C1)=2000),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,6)))), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B11,D2:D11,A2:A11),b,A2:A11,c,CHOOSECOLS(TAKE(SORT(LET(query1,FILTER(A2:F11,Year(C2:C11)=2000),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,6)))), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: Ids, titles and directors for movies directed in 1999 and 2000.
Formula: LET(query1,FILTER(A1:F1,(Year(C1)=1999)+(Year(C1)=2000)),UNIQUE(CHOOSECOLS(query1,4,2,1)))
Formula2: LET(query1,FILTER(A2:F11,(Year(C1)=1999)+(Year(C1)=2000)),UNIQUE(CHOOSECOLS(query1,4,2,1)))
Level: hard
Question: Directors and ids for movies released in 1999 or 2000.
Formula: LET(query1,FILTER(A1:F1,(Year(C1)=1999)+(Year(C1)=2000)),UNIQUE(CHOOSECOLS(query1,4,1)))
Formula2: LET(query1,FILTER(A2:F11,(Year(C1)=1999)+(Year(C1)=2000)),UNIQUE(CHOOSECOLS(query1,4,1)))
Level: hard
Question: How many movies and directors?
Formula: HSTACK(SUM(A1), ROWS(UNIQUE(D1)))
Formula2: HSTACK(SUM(A2:A11), ROWS(UNIQUE(D2:D11)))
Level: hard
Question: How many directors?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D11))
Level: easy
Question: Id, title and director of the movie which earned highest gross worldwide in 2000.
Formula: LET(a,HSTACK(A1,B1,D1),b,A1,c,CHOOSECOLS(TAKE(SORT(LET(query1,FILTER(A1:F1,Year(C1)=2000),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,6)))), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(A2:A11,B2:B11,D2:D11),b,A2:A11,c,CHOOSECOLS(TAKE(SORT(LET(query1,FILTER(A2:F11,Year(C2:C11)=2000),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,6)))), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard