Question: I'd like to know which one has a bigger area, San Salvador or Peterborough (which has Canada as a country)
Choices:
Dundee
Cork
Bergen
Chihuahua
San Salvador
Santo Domingo
Kingston
Kilkenny
Trieste
Abidjan
Program:
function: Find
inputs: San Salvador
function: Find
inputs: Canada
function: Relate
dependencies: 1
inputs: country
backward
function: Find
inputs: Peterborough
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Salvador" .  } UNION { ?e <pred:name> "Peterborough" . ?e <country> ?e_1 . ?e_1 <pred:name> "Canada" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: San Salvador