Question: What is the relationship between John Carter (the one whose director is Andrew Stanton) to Arizona (the one that is the filming location of The Grifters)?
Choices:
lifestyle
narrative location
patron saint
language used
official residence
architectural style
home venue
spouse
part of the series
commissioned by
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Carter" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Andrew Stanton" . ?e_2 <pred:name> "Arizona" . ?e_4 <filming_location> ?e_2 . ?e_4 <pred:name> "The Grifters" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Andrew Stanton
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: John Carter
function: And
dependencies: 1
2
function: Find
inputs: The Grifters
function: Relate
dependencies: 4
inputs: filming location
forward
function: Find
inputs: Arizona
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7