Question: Which area is smaller, Marrakesh or Melbourne (the one that contains University of Melbourne)?
Choices:
Chihuahua
Dundee
Abidjan
Santo Domingo
Cork
Marrakesh
Kilkenny
Kingston
Trieste
Bergen
Program:
function: Find
inputs: Marrakesh
function: Find
inputs: University of Melbourne
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Melbourne
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Marrakesh" .  } UNION { ?e <pred:name> "Melbourne" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "University of Melbourne" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Marrakesh