Question: Which has less elevation above sea level, Annapolis whose elevation above sea level is 12 metres or Tulsa whose postal code is 74101–74108?
Choices:
Compton
Columbus
New Haven
Tulsa
Lansing
Annapolis
Franklin
Waukegan
Greenville
Oakland
Program:
function: Find
inputs: Annapolis
function: FilterNum
dependencies: 0
inputs: elevation above sea level
12 metre
=
function: Find
inputs: Tulsa
function: FilterStr
dependencies: 2
inputs: postal code
74101–74108
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Annapolis" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "12"^^xsd:double . } UNION { ?e <pred:name> "Tulsa" . ?e <postal_code> ?pv_2 . ?pv_2 <pred:value> "74101–74108" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Annapolis