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