Question: Which area has a lower elevation above sea level, Kuala Lumpur or Paris (the one whose demonym is parisenca)?
Choices:
Manila
Kuala Lumpur
Doha
Paris
New Delhi
Mexico City
Tallinn
Sarajevo
Moscow
Lausanne
Program:
function: Find
inputs: Kuala Lumpur
function: Find
inputs: Paris
function: FilterStr
dependencies: 1
inputs: demonym
parisenca
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kuala Lumpur" . } UNION { ?e <pred:name> "Paris" . ?e <demonym> ?pv_1 . ?pv_1 <pred:value> "parisenca" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Paris