Question: Does Irving or Medford (area 22.437067 square kilometres) have a lower elevation?
Choices:
New Haven
Waukegan
Lansing
Greenville
Medford
Irving
Franklin
Columbus
Oakland
Compton
Answer: Irving
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Irving" . } UNION { ?e <pred:name> "Medford" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "22.437067"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Irving
function: Find
inputs: Medford
function: FilterNum
dependencies: 1
inputs: area
22.437067 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater