Question: Which is higher relative to sea level: Halifax, the capital of Nova Scotia, or Cambridge, where Ludwig Wittgenstein died?
Choices:
Santo Domingo
Halifax
Kilkenny
Bergen
Kingston
Trieste
Cork
Chihuahua
Cambridge
Abidjan
Program:
function: Find
inputs: Nova Scotia
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Halifax
function: And
dependencies: 1
2
function: Find
inputs: Ludwig Wittgenstein
function: Relate
dependencies: 4
inputs: place of death
forward
function: Find
inputs: Cambridge
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Halifax" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Nova Scotia" .   } UNION { ?e <pred:name> "Cambridge" . ?e_2 <place_of_death> ?e . ?e_2 <pred:name> "Ludwig Wittgenstein" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Halifax