Question: Does Nottingham or Santa Fe (whose area is 268 square kilometers) have the higher elevation above sea level?
Choices:
Kilkenny
Cork
Nottingham
Santo Domingo
Chihuahua
Abidjan
Bergen
Trieste
Santa Fe
Dundee
Answer: Nottingham
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nottingham" . } UNION { ?e <pred:name> "Santa Fe" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "268"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Nottingham
function: Find
inputs: Santa Fe
function: FilterNum
dependencies: 1
inputs: area
268 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater