Question: Which area has more people, Bristol or Thunder Bay (the one that is the birthplace of Paul Shaffer)?
Choices:
Kingston
Chihuahua
Bergen
Dundee
Thunder Bay
Trieste
Santo Domingo
Abidjan
Kilkenny
Bristol
Answer: Bristol
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bristol" .  } UNION { ?e <pred:name> "Thunder Bay" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Paul Shaffer" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bristol
function: Find
inputs: Paul Shaffer
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Thunder Bay
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater