Question: How is Poltergeist, shot in Toronto, related to Sam Raimi?
Choices:
newspaper format
soundtrack album
mountain range
league
public holiday
location
next higher rank
producer
time period
programming paradigm
Program:
function: Find
inputs: Toronto
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Poltergeist
function: And
dependencies: 1
2
function: Find
inputs: Sam Raimi
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Poltergeist" . ?e_1 <filming_location> ?e_3 . ?e_3 <pred:name> "Toronto" . ?e_2 <pred:name> "Sam Raimi" . ?e_1 ?p ?e_2 .  }
Answer: producer