Question: Which river is located inside of or next to Greenwich, United Kingdom?
Choices: Columbia River
Amazon
Danube
Missouri River
Ohio River
Hudson River
Mississippi River
Rhine
Gibraltar
River Thames
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e_1 <located_in_or_next_to_body_of_water> ?e . ?e_1 <pred:name> "Greenwich" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United Kingdom" .   }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Greenwich
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in or next to body of water
forward
function: FilterConcept
dependencies: 4
inputs: river
function: What
dependencies: 5
Answer: River Thames