Question: Which area has more people, Greenville (the one that is an administrative division of Greenville County) or Green Bay (the one whose population is 104057)?
Choices: Lansing
Green Bay
New Britain
Waukegan
Oakland
Greenville
Compton
Franklin
Boulder
New Haven
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greenville" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Greenville County" . } UNION { ?e <pred:name> "Green Bay" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "104057"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Greenville County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Greenville
function: And
dependencies: 1
2
function: Find
inputs: Green Bay
function: FilterNum
dependencies: 4
inputs: population
104057
=
function: SelectBetween
dependencies: 3
5
inputs: population
greater
Answer: Green Bay