Question: Which has the larger area, Scarborough, which is part of Toronto, or Belfast?
Choices:
Santo Domingo
Kilkenny
Belfast
Trieste
Scarborough
Dundee
Kingston
Chihuahua
Abidjan
Cork
Answer: Scarborough
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scarborough" . ?e <part_of> ?e_1 . ?e_1 <pred:name> "Toronto" .   } UNION { ?e <pred:name> "Belfast" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
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: Belfast
function: SelectBetween
dependencies: 3
4
inputs: area
greater