Question: Does Winchester, postal code SO23, or Skopje have a greater population?
Choices:
Santo Domingo
Trieste
Cork
Kingston
Abidjan
Chihuahua
Skopje
Bergen
Kilkenny
Dundee
Answer: Skopje
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Winchester" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "SO23" . } UNION { ?e <pred:name> "Skopje" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Winchester
function: FilterStr
dependencies: 0
inputs: postal code
SO23
function: Find
inputs: Skopje
function: SelectBetween
dependencies: 1
2
inputs: population
greater