Question: Does North Carolina or Alaska, population 710231, have the higher elevation?
Choices: Illinois
Colorado
New Jersey
Florida
New Mexico
Alaska
California
Hawaii
North Carolina
Iowa
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "North Carolina" . } UNION { ?e <pred:name> "Alaska" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "710231"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: North Carolina
function: Find
inputs: Alaska
function: FilterNum
dependencies: 1
inputs: population
710231
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
Answer: Alaska