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