Question: Which area has lower elevation above sea level, Bali (the one whose FIPS 10-4 (countries and regions) is ID02) or Antwerp (the one whose elevation (above sea level) is 14 metre)?
Choices:
Washoe County
African Union
Antwerp
Greene County
Bali
San Juan County
Kent County
Lee County
Cass County
Orange County
Program:
function: Find
inputs: Bali
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
ID02
function: Find
inputs: Antwerp
function: FilterNum
dependencies: 2
inputs: elevation above sea level
14 metre
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bali" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "ID02" . } UNION { ?e <pred:name> "Antwerp" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "14"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Antwerp