Question: Does Bedford (the one whose area is 39.42 square mile), or Fairfield (the one whose PermID is 5035887492) have less area?
Choices:
Greenwich
Chapel Hill
Brookline
West Hartford
Fairfield
Bedford
Kensington
Westport
Uxbridge
Amherst
Answer: Fairfield
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedford" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square mile" . ?pv_1 <pred:value> "39.42"^^xsd:double . } UNION { ?e <pred:name> "Fairfield" . ?e <PermID> ?pv_2 . ?pv_2 <pred:value> "5035887492" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Bedford
function: FilterNum
dependencies: 0
inputs: area
39.42 square mile
=
function: Find
inputs: Fairfield
function: FilterStr
dependencies: 2
inputs: PermID
5035887492
function: SelectBetween
dependencies: 1
3
inputs: area
less