Question: Which film series titled Tom and Jerry includes The Bodyguard, directed by William Hanna?
Choices:
Tom and Jerry
The Mummy
Ice Age
Dumb and Dumber
Die Hard
The Smurfs
The Fast and the Furious
Rugrats
Star Wars
Final Destination
Program:
function: Find
inputs: William Hanna
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: The Bodyguard
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of the series
forward
function: FilterConcept
dependencies: 4
inputs: film series
function: FindAll
function: FilterStr
dependencies: 6
inputs: title
Tom and Jerry
function: FilterConcept
dependencies: 7
inputs: film series
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film series" . ?e_1 <part_of_the_series> ?e . ?e_1 <pred:name> "The Bodyguard" . ?e_1 <director> ?e_2 . ?e_2 <pred:name> "William Hanna" .  ?e <title> ?pv . ?pv <pred:value> "Tom and Jerry" .  }
Answer: Tom and Jerry