Question: Which has lower elevation above sea level, Fort Worth with postal code 76166 or Worcester that was founded in 1848?
Choices:
Franklin
New Haven
Fort Worth
Waukegan
Worcester
Lansing
Greenville
Oakland
Compton
Columbus
Program:
function: Find
inputs: Fort Worth
function: FilterStr
dependencies: 0
inputs: postal code
76166
function: Find
inputs: Worcester
function: FilterYear
dependencies: 2
inputs: inception
1848
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fort Worth" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "76166" . } UNION { ?e <pred:name> "Worcester" . ?e <inception> ?pv_2 . ?pv_2 <pred:year> 1848 . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Worcester