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