Question: Of Idaho having a population of 588637 and Colorado whose FIPS 5-2 alpha code(US states) is CO, which one has greater elevation above sealevel ?
Choices:
New Mexico
Colorado
California
Idaho
New Jersey
Illinois
Kansas
Florida
Iowa
Hawaii
Program:
function: Find
inputs: Idaho
function: FilterNum
dependencies: 0
inputs: population
588637
=
function: Find
inputs: Colorado
function: FilterStr
dependencies: 2
inputs: FIPS 5-2 alpha code (US states)
CO
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Idaho" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "588637"^^xsd:double . } UNION { ?e <pred:name> "Colorado" . ?e <FIPS_5-2_alpha_code_(US_states)> ?pv_2 . ?pv_2 <pred:value> "CO" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Colorado