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