Question: Does New Delhi (whose official website is http://www.ndmc.gov.in/) or Riga have the higher elevation above sea level?
Choices:
New Delhi
Manila
Doha
Moscow
Mexico City
Paris
Copenhagen
Tallinn
Riga
Sarajevo
Program:
function: Find
inputs: New Delhi
function: FilterStr
dependencies: 0
inputs: official website
http://www.ndmc.gov.in/
function: Find
inputs: Riga
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Delhi" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.ndmc.gov.in/" . } UNION { ?e <pred:name> "Riga" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: New Delhi