Question: How is The Alamo, produced by John Wayne, related to Richard Widmark?
Choices:
industry
political ideology
influenced by
nominated for
highest judicial authority
relative
home world
place of publication
cast member
operating system
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Alamo" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "John Wayne" . ?e_2 <pred:name> "Richard Widmark" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Wayne
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Alamo
function: And
dependencies: 1
2
function: Find
inputs: Richard Widmark
function: QueryRelation
dependencies: 3
4