Question: Does Victoria (whose country is Seychelles) or Tabriz have the larger population?
Choices:
Santo Domingo
Tabriz
Victoria
Kingston
Chihuahua
Abidjan
Trieste
Kilkenny
Bergen
Dundee
Program:
function: Find
inputs: Seychelles
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Victoria
function: And
dependencies: 1
2
function: Find
inputs: Tabriz
function: SelectBetween
dependencies: 3
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Victoria" . ?e <country> ?e_1 . ?e_1 <pred:name> "Seychelles" .   } UNION { ?e <pred:name> "Tabriz" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tabriz