Question: Does Carlisle, where Mike Figgis was born, or Rosario have the higher elevation?
Choices:
Santo Domingo
Carlisle
Dundee
Trieste
Kilkenny
Abidjan
Chihuahua
Kingston
Bergen
Rosario
Program:
function: Find
inputs: Mike Figgis
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Carlisle
function: And
dependencies: 1
2
function: Find
inputs: Rosario
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carlisle" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Mike Figgis" .   } UNION { ?e <pred:name> "Rosario" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rosario