Question: Which US city has a higher elevation than Dakar, capital of Senegal?
Choices: Waukegan
Washington, D.C.
Greenville
New Haven
Oakland
Ann Arbor
Boulder
Compton
Lansing
Columbus
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Dakar" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Senegal" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Senegal
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Dakar
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
largest
Answer: Ann Arbor