Table:
0
A
B
C
D
1
movie id
title
year
director
2
101
Gone with the Wind
1939
Victor Fleming
3
102
Star Wars
1977
George Lucas
4
103
The Sound of Music
1965
Robert Wise
5
104
E.T.
1982
Steven Spielberg
6
105
Titanic
1997
James Cameron
7
106
Snow White
1937
8
107
Avatar
2009
James Cameron
9
108
Raiders of the Lost Ark
1981
Steven Spielberg

Questions and formulas:
Question: Find the titles of all movies directed by steven spielberg.
Formula: FILTER(B1,D1="Steven Spielberg")
Formula2: FILTER(B2:B9,D2:D9="Steven Spielberg")
Level: easy
Question: What are the names of all movies directed by Steven Spielberg?
Formula: FILTER(B1,D1="Steven Spielberg")
Formula2: FILTER(B2:B9,D2:D9="Steven Spielberg")
Level: easy
Question: What is the name of the movie produced after 2000 and directed by James Cameron?
Formula: FILTER(B1,(D1="James Cameron")*(C1>2000))
Formula2: FILTER(B2:B9,(D2:D9="James Cameron")*(C2:C9>2000))
Level: easy
Question: What are the titles of all movies that James Cameron directed after 2000?
Formula: FILTER(B1,(D1="James Cameron")*(C1>2000))
Formula2: FILTER(B2:B9,(D2:D9="James Cameron")*(C2:C9>2000))
Level: easy
Question: How many movies were made before 2000?
Formula: SUM(FILTER(A1, Year(C1)<2000))
Formula2: SUM(FILTER(A2:A9, Year(C1)<2000))
Level: easy
Question: Who is the director of movie Avatar?
Formula: FILTER(D1,B1="Avatar")
Formula2: FILTER(D2:D9,B2:B9="Avatar")
Level: easy
Question: Who directed Avatar?
Formula: FILTER(D1,B1="Avatar")
Formula2: FILTER(D2:D9,B2:B9="Avatar")
Level: easy
Question: What are the names of all directors who made one movie?
Formula: LET(a,HSTACK(B1,D1),b,D1,c,CHOOSECOLS(LET(query1,SUMMARIZE(D1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)=1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B9,D2:D9),b,D2:D9,c,CHOOSECOLS(LET(query1,SUMMARIZE(D2:D9,SUMX(A2:A9)),FILTER(query1,CHOOSECOLS(query1,3)=1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: What are names of the movies that are either made before 1980 or directed by James Cameron?
Formula: FILTER(B1,(D1="James Cameron")+(C1<1980))
Formula2: FILTER(B2:B9,(D2:D9="James Cameron")+(C2:C9<1980))
Level: easy
Question: What are the names of all movies made before 1980 or had James Cameron as the director?
Formula: FILTER(B1,(D1="James Cameron")+(C1<1980))
Formula2: FILTER(B2:B9,(D2:D9="James Cameron")+(C2:C9<1980))
Level: easy
Question: What are titles and ids for movies directed by spielberg?
Formula: LET(query1,FILTER(A1:D1,D1="steven spielberg"),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,D2:D9="steven spielberg"),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: titles and ids of all movies directed by steven spielberg
Formula: LET(query1,FILTER(A1:D1,D1="steven spielberg"),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,D2:D9="steven spielberg"),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: names and ids for post-2000 movies directed by james cameron
Formula: LET(query1,FILTER(A1:D1,(D1="james cameron")*(Year(C1)>2000)),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,(D2:D9="james cameron")*(Year(C1)>2000)),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: The ids and titles of movies directed by james cameron after 2000.
Formula: LET(query1,FILTER(A1:D1,(D1="james cameron")*(Year(C1)>2000)),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,(D2:D9="james cameron")*(Year(C1)>2000)),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: How many movies were released before 2000?
Formula: SUM(FILTER(A1, Year(C1)<2000))
Formula2: SUM(FILTER(A2:A9, Year(C1)<2000))
Level: easy
Question: the director and movie id of avatar
Formula: LET(query1,FILTER(A1:D1,B1="avatar"),UNIQUE(CHOOSECOLS(query1,4,1)))
Formula2: LET(query1,FILTER(A2:D9,B2:B9="avatar"),UNIQUE(CHOOSECOLS(query1,4,1)))
Level: hard
Question: Who directed avatar?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:D1,B1="avatar"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:D9,B2:B9="avatar"),4))
Level: medium
Question: The ids and names of movies directed by james cameron before 1980.
Formula: LET(query1,FILTER(A1:D1,(D1="james cameron")*(Year(C1)<1980)),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,(D2:D9="james cameron")*(Year(C1)<1980)),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: The ids and titles of James Cameron movies before 1980.
Formula: LET(query1,FILTER(A1:D1,(D1="james cameron")*(Year(C1)<1980)),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,(D2:D9="james cameron")*(Year(C1)<1980)),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: The director of avatar.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:D1,B1="avatar"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:D9,B2:B9="avatar"),4))
Level: medium
Question: the title and id of movie whose director is steven spielberg
Formula: LET(query1,FILTER(A1:D1,D1="steven spielberg"),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,D2:D9="steven spielberg"),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: The names and ids for movies directed by james cameron after 2000.
Formula: LET(query1,FILTER(A1:D1,(D1="james cameron")*(Year(C1)>2000)),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,(D2:D9="james cameron")*(Year(C1)>2000)),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: the number of movies before 2000
Formula: SUM(FILTER(A1, Year(C1)<2000))
Formula2: SUM(FILTER(A2:A9, Year(C1)<2000))
Level: easy
Question: The ids and titles for movies directed by james cameron before 1980.
Formula: LET(query1,FILTER(A1:D1,(D1="james cameron")*(Year(C1)<1980)),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:D9,(D2:D9="james cameron")*(Year(C1)<1980)),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard