Question: Which has less area, Greenwich whose local dialing code is 203 or Concord where Henry David Thoreau died?
Choices:
Uxbridge
Chapel Hill
Westport
Concord
West Hartford
Litchfield
Amherst
Brookline
Kensington
Greenwich
Answer: Concord
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greenwich" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "203" . } UNION { ?e <pred:name> "Concord" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Henry David Thoreau" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Greenwich
function: FilterStr
dependencies: 0
inputs: local dialing code
203
function: Find
inputs: Henry David Thoreau
function: Relate
dependencies: 2
inputs: place of death
forward
function: Find
inputs: Concord
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less