Question: Is the elevation lower in Lubbock or in Fayetteville, founded in 1762?
Choices:
Lubbock
Lansing
Greenville
New Haven
Franklin
Fayetteville
Boulder
Compton
Oakland
Waukegan
Program:
function: Find
inputs: Lubbock
function: Find
inputs: Fayetteville
function: FilterYear
dependencies: 1
inputs: inception
1762
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lubbock" . } UNION { ?e <pred:name> "Fayetteville" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1762 . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fayetteville