Question: What work had the script written by Jon Favreau (the actor)?
Choices:
Talk to Her
Pleasantville
Iron Man
The Golden Compass
Star Wars: Episode III – Revenge of the Sith
The Ghost Writer
Nutty Professor II: The Klumps
Rebecca
G.I. Joe: Retaliation
Frost/Nixon
Answer: Iron Man
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Jon Favreau" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "actor" .   }
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Jon Favreau
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: screenwriter
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: What
dependencies: 5