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