Question: Does Alexandria, with a population of 47723, or Pawtucket have the larger population size?
Choices:
Waukegan
Oakland
Boulder
Pawtucket
New Haven
Compton
Alexandria
Franklin
Columbus
Lansing
Program:
function: Find
inputs: Alexandria
function: FilterNum
dependencies: 0
inputs: population
47723
=
function: Find
inputs: Pawtucket
function: SelectBetween
dependencies: 1
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alexandria" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "47723"^^xsd:double . } UNION { ?e <pred:name> "Pawtucket" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pawtucket