Question: Which has a greater area, Sherbrooke or Monza?
Choices:
Kilkenny
Dundee
Trieste
Cork
Santo Domingo
Abidjan
Sherbrooke
Monza
Chihuahua
Bergen
Program:
function: Find
inputs: Sherbrooke
function: Find
inputs: Monza
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sherbrooke" .  } UNION { ?e <pred:name> "Monza" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sherbrooke