Question: Is the elevation relative to sea level lower in Edmonton (population 812201) or San Marino (UN/LOCODE SMSAI)?
Choices:
Abidjan
Cork
Chihuahua
San Marino
Kingston
Trieste
Kilkenny
Bergen
Dundee
Edmonton
Answer: Edmonton
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Edmonton" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "812201"^^xsd:double . } UNION { ?e <pred:name> "San Marino" . ?e <UN/LOCODE> ?pv_2 . ?pv_2 <pred:value> "SMSAI" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Edmonton
function: FilterNum
dependencies: 0
inputs: population
812201
=
function: Find
inputs: San Marino
function: FilterStr
dependencies: 2
inputs: UN/LOCODE
SMSAI
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less