Question: Which has less population, Annapolis located in Anne Arundel County or Oxnard?
Choices:
Boulder
Annapolis
Columbus
Compton
Waukegan
Greenville
Lansing
Oxnard
Franklin
Oakland
Program:
function: Find
inputs: Anne Arundel County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Annapolis
function: And
dependencies: 1
2
function: Find
inputs: Oxnard
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Annapolis" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Anne Arundel County" .   } UNION { ?e <pred:name> "Oxnard" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Annapolis