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