Question: What city was named after Charles Darwin (who was influenced by Johann Wolfgang von Goethe) and whose zip code is 0800?
Choices:
Abidjan
Darwin
Chihuahua
Kilkenny
Bergen
Cork
Trieste
Santo Domingo
Dundee
Kingston
Program:
function: Find
inputs: Johann Wolfgang von Goethe
function: Relate
dependencies: 0
inputs: influenced by
backward
function: Find
inputs: Charles Darwin
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: city
function: FindAll
function: FilterStr
dependencies: 6
inputs: postal code
0800
function: FilterConcept
dependencies: 7
inputs: city
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Charles Darwin" . ?e_1 <influenced_by> ?e_2 . ?e_2 <pred:name> "Johann Wolfgang von Goethe" .  ?e <postal_code> ?pv . ?pv <pred:value> "0800" .  }
Answer: Darwin