Question: Who has fewer people, Plymouth (the one whose population is 56468) or Concord (the one whose postal code is 01742)?
Choices: Greenwich
Kensington
Westport
Concord
Amherst
Plymouth
Chapel Hill
West Hartford
Uxbridge
Bedford
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Plymouth" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "56468"^^xsd:double . } UNION { ?e <pred:name> "Concord" . ?e <postal_code> ?pv_2 . ?pv_2 <pred:value> "01742" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Plymouth
function: FilterNum
dependencies: 0
inputs: population
56468
=
function: Find
inputs: Concord
function: FilterStr
dependencies: 2
inputs: postal code
01742
function: SelectBetween
dependencies: 1
3
inputs: population
less
Answer: Concord