Question: Does Victoria (that is the narrative location of The Pacific) or KwaZulu-Natal have the higher elevation above sea level?
Choices:
Upper Austria
Victoria
Punjab
KwaZulu-Natal
Minas Gerais
Podlaskie Voivodeship
Greater Poland Voivodeship
Lublin Voivodeship
New South Wales
Chiapas
Program:
function: Find
inputs: The Pacific
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: Victoria
function: And
dependencies: 1
2
function: Find
inputs: KwaZulu-Natal
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Victoria" . ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "The Pacific" .   } UNION { ?e <pred:name> "KwaZulu-Natal" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: KwaZulu-Natal