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