Question: Which has more people, Union of South Africa or Electorate of Saxony?
Choices:
Second French Empire
Confederate States of America
Swedish Empire
Electorate of Saxony
Crown of Aragón
Union of South Africa
Abyssinia
Spanish Empire
Qing dynasty
Kingdom of Portugal
Program:
function: Find
inputs: Union of South Africa
function: Find
inputs: Electorate of Saxony
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Union of South Africa" .  } UNION { ?e <pred:name> "Electorate of Saxony" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Union of South Africa