<<< Actors who plays in movies for several years >>>
Scenario Movies
b2b9231b6443a0aa5631c90be81fc38491833122132db85f5699b268df22e189
See details on the model
In this scenario, we have three tables representing movies and the actors appearing in movies.
The table person contains the list of people who are actors or directors in movies; this table has 2 attributes:
- id a unique identifier for this person
- name the name of that person
The table movie that has 6 attributes:
- id a unique identifier for the movie
- title the name of the movie
- yr the year the movie was released
- director an integer (referring to the id of someone in the person table)
- budget the budget of the movie (in dollars)
- gross the amount of money generated by the movie (in dollars)
The table casting describes which actor playing in which movie and has 3 attributes:
- actorid, an integer referring to a person (who played in the movie)
- movieid, an integer referring to a movie (in which movie the actor played in)
- ord, an integer that describes the importance of the character the actor plays in the movie (1 means main character, 2 is the second role, etc.).
Question
What are the actors who have a leading role in three consecutive years?
{"rows":[["Aaron Eckhart"],["Adam Sandler"],["Angelina Jolie"],["Anthony Hopkins"],["Antonio Banderas"],["Ashton Kutcher"],["Ben Affleck"],["Ben Stiller"],["Billy Bob Thornton"],["Bruce Willis"],["Chris Klein"],["Christian Bale"],["Clive Owen"],["Dane Cook"],["David Arquette"],["David Duchovny"],["Dennis Quaid"],["Denzel Washington"],["Elijah Wood"],["Frankie Muniz"],["Freddie Highmore"],["Freddie Prinze, Jr."],["George Clooney"],["Gerard Butler"],["Haley Joel Osment"],["Heath Ledger"],["Hilary Duff"],["Ice Cube"],["Jack Nicholson"],["Jackie Chan"],["Jennifer Lopez"],["Jet Li"],["John Cusack"],["Johnny Depp"],["Johnny Knoxville"],["Kate Hudson"],["Kevin Kline"],["Kristen Stewart"],["Kurt Russell"],["Larry the Cable Guy"],["Lindsay Lohan"],["Mark Wahlberg"],["Matt Damon"],["Nicolas Cage"],["Owen Wilson"],["Queen Latifah"],["Renée Zellweger"],["Robert De Niro"],["Salma Hayek"],["Samuel L. Jackson"],["Seth Rogen"],["Shia LaBeouf"],["Tobey Maguire"],["Tobin Bell"],["Tom Cruise"],["Will Ferrell"],["Will Smith"],["Zach Braff"]],"fields":[{"name":"actor","dataTypeID":1043}],"affectedRows":0}
False
False