Question: Which has less population, Upland or Pleasantville that was established on 1889-01-10?
Choices:
New Haven
Compton
Lansing
Pleasantville
Oakland
Columbus
Upland
Waukegan
Greenville
Franklin
Answer: Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Upland" . } UNION { ?e <pred:name> "Pleasantville" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1889-01-10"^^xsd:date . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Upland
function: Find
inputs: Pleasantville
function: FilterDate
dependencies: 1
inputs: inception
1889-01-10
=
function: SelectBetween
dependencies: 0
2
inputs: population
less