Question: Is there a greater area in Scarborough (the part of Toronto) on Monza?
Choices:
Santo Domingo
Kingston
Trieste
Kilkenny
Cork
Dundee
Abidjan
Monza
Scarborough
Chihuahua
Program:
function: Find
inputs: Toronto
function: Relate
dependencies: 0
inputs: part of
backward
function: Find
inputs: Scarborough
function: And
dependencies: 1
2
function: Find
inputs: Monza
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scarborough" . ?e <part_of> ?e_1 . ?e_1 <pred:name> "Toronto" .   } UNION { ?e <pred:name> "Monza" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Scarborough