Question: What does A Christmas Carol (whose composer is Franz Waxman) have to do with London (the death place of William Blake)?
Choices:
contributor(s) to the creative work
narrative location
country of citizenship
published in
designed by
distribution
has quality
headquarters location
dedicated to
mountain range
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "A Christmas Carol" . ?e_1 <composer> ?e_3 . ?e_3 <pred:name> "Franz Waxman" . ?e_2 <pred:name> "London" . ?e_4 <place_of_death> ?e_2 . ?e_4 <pred:name> "William Blake" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Franz Waxman
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: A Christmas Carol
function: And
dependencies: 1
2
function: Find
inputs: William Blake
function: Relate
dependencies: 4
inputs: place of death
forward
function: Find
inputs: London
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7