Question: What is the relation between The Merry Widow (the one whose produced by Joe Pasternak) and Lana Turner?
Choices:
part of the series
month of the year
permanent resident of
geographic distribution
official religion
screenwriter
cast member
film distribute region
interests
maintained by
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Merry Widow" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "Joe Pasternak" . ?e_2 <pred:name> "Lana Turner" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Joe Pasternak
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Merry Widow
function: And
dependencies: 1
2
function: Find
inputs: Lana Turner
function: QueryRelation
dependencies: 3
4