Question: Which area is smaller, Johannesburg or Montevideo?
Choices:
Trieste
Montevideo
Chihuahua
Johannesburg
Abidjan
Cork
Dundee
Kingston
Santo Domingo
Bergen
Program:
function: Find
inputs: Johannesburg
function: Find
inputs: Montevideo
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Johannesburg" .  } UNION { ?e <pred:name> "Montevideo" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Montevideo