Question: Are there more people in Bethlehem (birthplace of Daniel Roebuck) or in Lancaster (dialing code 717)?
Choices: Philadelphia
Wilkes-Barre
Harrisburg
Johnstown
Bethlehem
Erie
Chester
Greensburg
Lancaster
York
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bethlehem" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Daniel Roebuck" . } UNION { ?e <pred:name> "Lancaster" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "717" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Daniel Roebuck
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Bethlehem
function: And
dependencies: 1
2
function: Find
inputs: Lancaster
function: FilterStr
dependencies: 4
inputs: local dialing code
717
function: SelectBetween
dependencies: 3
5
inputs: population
greater
Answer: Bethlehem