Question: Is the population size smaller in Lima, founded in 1831, or Jackson, founded in 1821?
Choices:
Franklin
Lima
Greenville
Compton
Oakland
Columbus
Lansing
Waukegan
Boulder
New Haven
Program:
function: Find
inputs: Lima
function: FilterYear
dependencies: 0
inputs: inception
1831
=
function: Find
inputs: Jackson
function: FilterYear
dependencies: 2
inputs: inception
1821
=
function: SelectBetween
dependencies: 1
3
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lima" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1831 . } UNION { ?e <pred:name> "Jackson" . ?e <inception> ?pv_2 . ?pv_2 <pred:year> 1821 . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lima