Question: Which city has less land area, Jalandhar or Charlottetown?
Choices:
Bergen
Kilkenny
Chihuahua
Dundee
Jalandhar
Trieste
Cork
Kingston
Abidjan
Charlottetown
Program:
function: Find
inputs: Jalandhar
function: Find
inputs: Charlottetown
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jalandhar" .  } UNION { ?e <pred:name> "Charlottetown" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Charlottetown