Question: Titanic, originating in Germany, has what connection to the Atlantic Ocean?
Choices:
language of work or name
film release region
editor
narrative location
has edition
genre
sidekick of
item operated
main subject
indigenous to
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Titanic" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "Germany" . ?e_2 <pred:name> "Atlantic Ocean" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Titanic
function: And
dependencies: 1
2
function: Find
inputs: Atlantic Ocean
function: QueryRelation
dependencies: 3
4