Question: Which has higher elevation above sea level, Newport News or Norfolk (the one whose FIPS 6-4 (US counties) is 51710)?
Choices:
Fairfax
Williamsburg
Danville
Suffolk
Winchester
Norfolk
Charlottesville
Newport News
Hampton
Roanoke
Program:
function: Find
inputs: Newport News
function: Find
inputs: Norfolk
function: FilterStr
dependencies: 1
inputs: FIPS 6-4 (US counties)
51710
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newport News" . } UNION { ?e <pred:name> "Norfolk" . ?e <FIPS_6-4_(US_counties)> ?pv_1 . ?pv_1 <pred:value> "51710" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Newport News