Question: What is the connection between Transylvania (the one that origins from France) to Transylvania (the one that is the narrative location of Young Frankenstein)?
Choices:
patron saint
composer
ancestral home
platform
given name
series spin-off
narrative location
mother
operator
terminus
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Transylvania" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "France" . ?e_2 <pred:name> "Transylvania" . ?e_4 <narrative_location> ?e_2 . ?e_4 <pred:name> "Young Frankenstein" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Transylvania
function: And
dependencies: 1
2
function: Find
inputs: Young Frankenstein
function: Relate
dependencies: 4
inputs: narrative location
forward
function: Find
inputs: Transylvania
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7