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