Question: Which has more people, West Germany or Nauru?
Choices:
Weimar Republic
Samoa
Kiribati
South Sudan
Cambodia
West Germany
Russian Soviet Federative Socialist Republic
Nauru
Benin
Socialist Federal Republic of Yugoslavia
Program:
function: Find
inputs: West Germany
function: Find
inputs: Nauru
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "West Germany" .  } UNION { ?e <pred:name> "Nauru" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: West Germany