Question: Are there more people living in Turkmenistan or Montenegro?
Choices:
Russian Soviet Federative Socialist Republic
Socialist Federal Republic of Yugoslavia
Turkmenistan
Cambodia
Montenegro
Switzerland
South Sudan
Kiribati
Weimar Republic
Samoa
Program:
function: Find
inputs: Turkmenistan
function: Find
inputs: Montenegro
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Turkmenistan" .  } UNION { ?e <pred:name> "Montenegro" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Turkmenistan