Question: Which has more people, Fairfield (the one whose area is 31.38 square mile) or Bryn Mawr?
Choices:
Fairfield
Uxbridge
Greenwich
Bryn Mawr
Kensington
West Hartford
Chapel Hill
Bedford
Westport
Amherst
Answer: Fairfield
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fairfield" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square mile" . ?pv_1 <pred:value> "31.38"^^xsd:double . } UNION { ?e <pred:name> "Bryn Mawr" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Fairfield
function: FilterNum
dependencies: 0
inputs: area
31.38 square mile
=
function: Find
inputs: Bryn Mawr
function: SelectBetween
dependencies: 1
2
inputs: population
greater