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