Question: Which has lower elevation above sea level, Kingston (the one whose area is 480000000 square metre) or Salford?
Choices:
Dundee
Trieste
Cork
Cairo
Salford
Santo Domingo
Chihuahua
Kingston
Abidjan
Kilkenny
Program:
function: Find
inputs: Kingston
function: FilterNum
dependencies: 0
inputs: area
480000000 square metre
=
function: Find
inputs: Salford
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kingston" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square metre" . ?pv_1 <pred:value> "480000000"^^xsd:double . } UNION { ?e <pred:name> "Salford" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kingston