Question: In what country is Frankfurt, which is the birthplace of Hans Zimmer (whose music genre is soundtrack)?
Choices:
West Germany
worldwide
Egypt
Orange Free State
Panama
Chile
Kingdom of the Netherlands
Scotland
Kingdom of Italy
Cambodia
Answer: West Germany
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Hans Zimmer" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "soundtrack" . ?e_2 <pred:name> "Frankfurt" . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: soundtrack
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Hans Zimmer
function: And
dependencies: 1
2
function: Find
inputs: Frankfurt
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of birth
country