Question: Which area is larger, Danville (the one that contains Centre College) or Las Vegas (the one whose elevation (above sea level) is 610 metre)?
Choices: Columbus
Greenville
Las Vegas
New Haven
Boulder
Lansing
Danville
Franklin
Waukegan
Compton
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Danville" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Centre College" . } UNION { ?e <pred:name> "Las Vegas" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "610"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Centre College
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Danville
function: And
dependencies: 1
2
function: Find
inputs: Las Vegas
function: FilterNum
dependencies: 4
inputs: elevation above sea level
610 metre
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater
Answer: Las Vegas