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