Question: Tell me which one has more elevation (over sea level), Dubai (which has official website http://www.dm.gov.ae/wps/portal/MyHomeEn) or Patna
Choices:
Santo Domingo
Dubai
Cork
Patna
Kilkenny
Trieste
Abidjan
Chihuahua
Kingston
Bergen
Program:
function: Find
inputs: Dubai
function: FilterStr
dependencies: 0
inputs: official website
http://www.dm.gov.ae/wps/portal/MyHomeEn
function: Find
inputs: Patna
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dubai" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.dm.gov.ae/wps/portal/MyHomeEn" . } UNION { ?e <pred:name> "Patna" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Patna