Question: Does Ballarat or Hereford occupy the larger area?
Choices:
Kingston
Hereford
Kilkenny
Dundee
Abidjan
Trieste
Chihuahua
Santo Domingo
Cork
Ballarat
Program:
function: Find
inputs: Ballarat
function: Find
inputs: Hereford
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ballarat" .  } UNION { ?e <pred:name> "Hereford" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ballarat