Question: Does Medina (the one whose Dewey Decimal Classification is 2--538) or Hamilton (the one whose elevation (above sea level) is 40 metres) have less population?
Choices: Kilkenny
Medina
Chihuahua
Hamilton
Dundee
Trieste
Santo Domingo
Abidjan
Kingston
Bergen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Medina" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--538" . } UNION { ?e <pred:name> "Hamilton" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "40"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Medina
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--538
function: Find
inputs: Hamilton
function: FilterNum
dependencies: 2
inputs: elevation above sea level
40 metre
=
function: SelectBetween
dependencies: 1
3
inputs: population
less
Answer: Hamilton