Question: What river is located in Greater London ?
Choices:
London Borough of Hackney
Hudson River
City of Westminster
Middlesex
Columbia River
Amazon
London Borough of Enfield
River Thames
Missouri River
Ohio River
Program:
function: Find
inputs: Greater London
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: river
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Greater London" .   }
Answer: River Thames