Question: Which area has higher elevation above sea level, Mississippi (the one that is an administrative division of United States of America) or Wyoming (the one whose population is 563626)?
Choices:
Illinois
Iowa
Florida
Massachusetts
Hawaii
New Mexico
California
Colorado
Wyoming
Mississippi
Answer: Wyoming
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mississippi" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "United States of America" . } UNION { ?e <pred:name> "Wyoming" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "563626"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Mississippi
function: And
dependencies: 1
2
function: Find
inputs: Wyoming
function: FilterNum
dependencies: 4
inputs: population
563626
=
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
greater