Question: What is the connection between The End of the Affair (the one whose director is Edward Dmytryk) to Peter Cushing?
Choices:
languages spoken, written or signed
talk show guest
presenter
make-up artist
cast member
applies to jurisdiction
hair color
facet of
permanent resident of
update method
Program:
function: Find
inputs: Edward Dmytryk
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: The End of the Affair
function: And
dependencies: 1
2
function: Find
inputs: Peter Cushing
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The End of the Affair" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Edward Dmytryk" . ?e_2 <pred:name> "Peter Cushing" . ?e_1 ?p ?e_2 .  }
Answer: cast member