Question: Among the capitals that are the twinned administrative body of San Francisco (the residence of Robin Williams), which has the largest elevation above sea level?
Choices:
Sarajevo
Addis Ababa
Bucharest
Manila
Bangalore
Moscow
Lausanne
Zürich
Lisbon
Cape Town
Answer: Addis Ababa
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "San Francisco" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Robin Williams" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Robin Williams
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: San Francisco
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 4
inputs: capital
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
largest