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