Question: Which has fewer people, Somerville (the one whose inception time is 1630) or Denton?
Choices:
New Haven
Boulder
Waukegan
Denton
Oakland
Columbus
Compton
Franklin
Somerville
Greenville
Program:
function: Find
inputs: Somerville
function: FilterYear
dependencies: 0
inputs: inception
1630
=
function: Find
inputs: Denton
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Somerville" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1630 . } UNION { ?e <pred:name> "Denton" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Somerville