Question: Which has fewer people, Uzbekistan or Bosnia and Herzegovina?
Choices:
Benin
Uzbekistan
Weimar Republic
Russian Soviet Federative Socialist Republic
South Sudan
Cambodia
Switzerland
Socialist Federal Republic of Yugoslavia
Kiribati
Bosnia and Herzegovina
Program:
function: Find
inputs: Uzbekistan
function: Find
inputs: Bosnia and Herzegovina
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Uzbekistan" .  } UNION { ?e <pred:name> "Bosnia and Herzegovina" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bosnia and Herzegovina