Question: How is Matt Damon related to The Talented Mr. Ripley, which had Jude Law as a cast member?
Choices: from fictional universe
record label
stated in
honorific prefix
make-up artist
production company
theme music
illustrator
cast member
country for sport
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Talented Mr. Ripley" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Jude Law" . ?e_2 <pred:name> "Matt Damon" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Jude Law
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Talented Mr. Ripley
function: And
dependencies: 1
2
function: Find
inputs: Matt Damon
function: QueryRelation
dependencies: 3
4
Answer: cast member