Question: Does Tennessee ( FIPS 10-4 (countries and regions) US47) or Rhode Island have the higher elevation?
Choices:
Tennessee
Hawaii
Illinois
Rhode Island
California
Massachusetts
New Mexico
Florida
Iowa
Colorado
Program:
function: Find
inputs: Tennessee
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
US47
function: Find
inputs: Rhode Island
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tennessee" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "US47" . } UNION { ?e <pred:name> "Rhode Island" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tennessee