Question: Does Florence, home of Dante Alighieri, or Monza have greater area?
Choices:
Santo Domingo
Florence
Bergen
Cork
Chihuahua
Trieste
Kilkenny
Kingston
Abidjan
Dundee
Program:
function: Find
inputs: Dante Alighieri
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Florence
function: And
dependencies: 1
2
function: Find
inputs: Monza
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Florence" . ?e_1 <residence> ?e . ?e_1 <pred:name> "Dante Alighieri" .   } UNION { ?e <pred:name> "Monza" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Florence