Question: Transformers, with Bernie Mac as a cast member, precedes the movie based on which media franchise?
Choices:
From Dusk till Dawn
Star Wars
Star Trek
Shrek
Transformers
Law & Order
The Little Mermaid
Dragon Ball
Mighty Morphin Power Rangers
Jurassic Park
Program:
function: Find
inputs: Bernie Mac
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Transformers
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: followed by
forward
function: FilterConcept
dependencies: 4
inputs: film
function: Relate
dependencies: 5
inputs: based on
forward
function: FilterConcept
dependencies: 6
inputs: media franchise
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "media franchise" . ?e_1 <based_on> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "film" . ?e_3 <followed_by> ?e_1 . ?e_3 <pred:name> "Transformers" . ?e_3 <cast_member> ?e_4 . ?e_4 <pred:name> "Bernie Mac" .   }
Answer: Transformers