Question: Is there a greater elevation above sea level in Missouri or (the one whose FIPS 5-2 alpha code (US states) is NY)?
Choices: Illinois
New Jersey
New York
Missouri
New Mexico
Hawaii
Colorado
Florida
Massachusetts
Iowa
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Missouri" . } UNION { ?e <pred:name> "New York" . ?e <FIPS_5-2_alpha_code_(US_states)> ?pv_1 . ?pv_1 <pred:value> "NY" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Missouri
function: Find
inputs: New York
function: FilterStr
dependencies: 1
inputs: FIPS 5-2 alpha code (US states)
NY
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
Answer: New York