Question: What is the title of Jerusalem (the one that origins from Sweden)?
Choices:
Voltaire
Mary Shelley
Jerusalem
Android
A Great Day in Harlem
The Proposition
The Unbearable Lightness of Being
The Clearing
Cuba
Autant en emporte le vent
Program:
function: Find
inputs: Sweden
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Jerusalem
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Jerusalem" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Sweden" .  ?e <title> ?pv .  }
Answer: Jerusalem