Question: Which has less population, Mansfield whose population is 50212 or Boise?
Choices:
Mansfield
Boulder
Franklin
Boise
New Haven
Compton
Columbus
Greenville
Lansing
Oakland
Program:
function: Find
inputs: Mansfield
function: FilterNum
dependencies: 0
inputs: population
50212
=
function: Find
inputs: Boise
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mansfield" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "50212"^^xsd:double . } UNION { ?e <pred:name> "Boise" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mansfield