Question: Does Newcastle or Delhi have less female population?
Choices:
Dundee
Kilkenny
Bergen
Cork
Santo Domingo
Newcastle
Chihuahua
Abidjan
Delhi
Kingston
Program:
function: Find
inputs: Newcastle
function: Find
inputs: Delhi
function: SelectBetween
dependencies: 0
1
inputs: female population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newcastle" .  } UNION { ?e <pred:name> "Delhi" .  } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Newcastle