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