Question: Is the population smaller in Mobile (native label Mobile) or New Bedford?
Choices:
New Haven
New Bedford
Waukegan
Lansing
Oakland
Mobile
Compton
Columbus
Franklin
Greenville
Program:
function: Find
inputs: Mobile
function: FilterStr
dependencies: 0
inputs: native label
Mobile
function: Find
inputs: New Bedford
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mobile" . ?e <native_label> ?pv_1 . ?pv_1 <pred:value> "Mobile" . } UNION { ?e <pred:name> "New Bedford" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: New Bedford