Question: Which location has the higher above-sea-level elevation, Valencia, which is 520 meters above sea level, or San Marino, which has a FIPS 10-4 (counties and regions) or SM07?
Choices:
Abidjan
Kingston
Bergen
Santo Domingo
San Marino
Chihuahua
Valencia
Dundee
Trieste
Kilkenny
Program:
function: Find
inputs: San Marino
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
SM07
function: Find
inputs: Valencia
function: FilterNum
dependencies: 2
inputs: elevation above sea level
520 metre
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Marino" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "SM07" . } UNION { ?e <pred:name> "Valencia" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "520"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: San Marino