Question: Which has a larger population, Anderson, with the local dialing code of 765, or Olympic, located in Washington?
Choices:
Franklin
Waukegan
Compton
Greenville
Lansing
Columbus
Olympia
New Haven
Anderson
Boulder
Program:
function: Find
inputs: Anderson
function: FilterStr
dependencies: 0
inputs: local dialing code
765
function: Find
inputs: Washington
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Olympia
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anderson" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "765" . } UNION { ?e <pred:name> "Olympia" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Washington" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Anderson