Question: Which one among Fairfield whose PermID is 5035887492 and Bedford having elevation of 116 metres above sealevel, is less populous?
Choices:
Chapel Hill
Amherst
Greenwich
Bedford
Litchfield
West Hartford
Kensington
Brookline
Westport
Uxbridge
Program:
function: Find
inputs: Fairfield
function: FilterStr
dependencies: 0
inputs: PermID
5035887492
function: Find
inputs: Bedford
function: FilterNum
dependencies: 2
inputs: elevation above sea level
116 metre
=
function: SelectBetween
dependencies: 1
3
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fairfield" . ?e <PermID> ?pv_1 . ?pv_1 <pred:value> "5035887492" . } UNION { ?e <pred:name> "Bedford" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "116"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bedford