Question: Which area is larger, Chennai or Valencia (the one whose country is Spain)?
Choices: Chennai
Santo Domingo
Dundee
Abidjan
Kilkenny
Bergen
Kingston
Trieste
Valencia
Chihuahua
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chennai" .  } UNION { ?e <pred:name> "Valencia" . ?e <country> ?e_1 . ?e_1 <pred:name> "Spain" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chennai
function: Find
inputs: Spain
function: Relate
dependencies: 1
inputs: country
backward
function: Find
inputs: Valencia
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
Answer: Chennai