Question: Which has a lesser population, Biloxi or Gloucester (whose inception time is 1623)?
Choices:
Columbus
Gloucester
Greenville
Waukegan
Oakland
Compton
Boulder
Franklin
Biloxi
Lansing
Program:
function: Find
inputs: Biloxi
function: Find
inputs: Gloucester
function: FilterYear
dependencies: 1
inputs: inception
1623
=
function: SelectBetween
dependencies: 0
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Biloxi" . } UNION { ?e <pred:name> "Gloucester" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1623 . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Gloucester