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