Question: Does Paris, story setting of The Curious Case of Benjamin Button, or does Mexico City have the lower elevation?
Choices:
Riga
Paris
Moscow
Sarajevo
Tallinn
Mexico City
New Delhi
Doha
Lausanne
Manila
Program:
function: Find
inputs: The Curious Case of Benjamin Button
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: Paris
function: And
dependencies: 1
2
function: Find
inputs: Mexico City
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paris" . ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "The Curious Case of Benjamin Button" .   } UNION { ?e <pred:name> "Mexico City" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Paris