Question: Which has fewer people, Patna or Madurai?
Choices:
Dundee
Santo Domingo
Madurai
Abidjan
Trieste
Patna
Cork
Kingston
Kilkenny
Bergen
Program:
function: Find
inputs: Patna
function: Find
inputs: Madurai
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Patna" .  } UNION { ?e <pred:name> "Madurai" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Madurai