Question: Does Kabul (elevation 1908 metres) or New South Wales occupy the smaller area?
Choices:
Upper Austria
Greater Poland Voivodeship
Minas Gerais
Kabul
Podlaskie Voivodeship
Chiapas
Lublin Voivodeship
Tasmania
Punjab
England
Program:
function: Find
inputs: Kabul
function: FilterNum
dependencies: 0
inputs: elevation above sea level
1908 metre
=
function: Find
inputs: New South Wales
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kabul" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "1908"^^xsd:double . } UNION { ?e <pred:name> "New South Wales" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kabul