Question: What is the connection between The Scarlet Letter (that is filmed in Cologne) and Spain?
Choices:
founded by
field of work
general manager
office contested
present in work
characters
editor
country of origin
place of publication
indigenous to
Program:
function: Find
inputs: Cologne
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Scarlet Letter
function: And
dependencies: 1
2
function: Find
inputs: Spain
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Scarlet Letter" . ?e_1 <filming_location> ?e_3 . ?e_3 <pred:name> "Cologne" . ?e_2 <pred:name> "Spain" . ?e_1 ?p ?e_2 .  }
Answer: country of origin