Question: What is the relationship between Poltergeist (the one that is shot in Toronto) and Sam Rockwell?
Choices:
cast member
relative
draft pick from school
exclave of
named after
parent astronomical body
replaces
season starts
country of origin
place of publication
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 Rockwell
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 Rockwell" . ?e_1 ?p ?e_2 .  }
Answer: cast member