Question: Does Tempe or Kingston (with the 845 area code) have a greater population?
Choices:
Franklin
Boulder
Compton
Tempe
New Haven
Columbus
Waukegan
Kingston
Oakland
Lansing
Answer: Tempe
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tempe" . } UNION { ?e <pred:name> "Kingston" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "845" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Tempe
function: Find
inputs: Kingston
function: FilterStr
dependencies: 1
inputs: local dialing code
845
function: SelectBetween
dependencies: 0
2
inputs: population
greater