Question: Which has the larger population, Marietta or Northampton, which has a postal code of 01060?
Choices:
Columbus
Northampton
Greenville
Marietta
New Haven
Lansing
Franklin
Boulder
Waukegan
Oakland
Program:
function: Find
inputs: Marietta
function: Find
inputs: Northampton
function: FilterStr
dependencies: 1
inputs: postal code
01060
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Marietta" . } UNION { ?e <pred:name> "Northampton" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "01060" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Marietta