Question: Which area has higher elevation above sea level, Utah (the one whose FIPS 5-2 numeric code (US states) is 49) or Mississippi (the one whose short name is MS)?
Choices:
Hawaii
Florida
Colorado
New Jersey
California
Illinois
New Mexico
Massachusetts
Utah
Iowa
Program:
function: Find
inputs: Utah
function: FilterStr
dependencies: 0
inputs: FIPS 5-2 numeric code (US states)
49
function: Find
inputs: Mississippi
function: FilterStr
dependencies: 2
inputs: short name
MS
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Utah" . ?e <FIPS_5-2_numeric_code_(US_states)> ?pv_1 . ?pv_1 <pred:value> "49" . } UNION { ?e <pred:name> "Mississippi" . ?e <short_name> ?pv_2 . ?pv_2 <pred:value> "MS" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Utah