Question: Does Concord whose postal code is 01742 or Fairfield which is located in time zone Eastern Time zone has less population?
Choices:
Westport
West Hartford
Fairfield
Chapel Hill
Uxbridge
Kensington
Amherst
Brookline
Greenwich
Concord
Program:
function: Find
inputs: Concord
function: FilterStr
dependencies: 0
inputs: postal code
01742
function: Find
inputs: Eastern Time Zone
function: Relate
dependencies: 2
inputs: located in time zone
backward
function: Find
inputs: Fairfield
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Concord" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "01742" . } UNION { ?e <pred:name> "Fairfield" . ?e <located_in_time_zone> ?e_1 . ?e_1 <pred:name> "Eastern Time Zone" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Concord