Question: Which has more people, Danville (the one whose local dialing code is 859) or Tyler?
Choices:
New Haven
Compton
Columbus
Boulder
Waukegan
Danville
Franklin
Tyler
Lansing
Greenville
Program:
function: Find
inputs: Danville
function: FilterStr
dependencies: 0
inputs: local dialing code
859
function: Find
inputs: Tyler
function: SelectBetween
dependencies: 1
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Danville" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "859" . } UNION { ?e <pred:name> "Tyler" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tyler