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