Question: Is Naples (capital Campania) or Qingdao higher in elevation above sea level?
Choices: Cork
Kingston
Kilkenny
Bergen
Naples
Abidjan
Dundee
Qingdao
Chihuahua
Santo Domingo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Naples" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Campania" .   } UNION { ?e <pred:name> "Qingdao" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Campania
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Naples
function: And
dependencies: 1
2
function: Find
inputs: Qingdao
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
Answer: Naples