Question: Which area has more people, Kingdom of Sardinia or Austrian Empire?
Choices:
Socialist Federal Republic of Yugoslavia
Kiribati
Kingdom of Sardinia
Cambodia
Russian Soviet Federative Socialist Republic
Benin
Austrian Empire
Weimar Republic
Switzerland
Samoa
Program:
function: Find
inputs: Kingdom of Sardinia
function: Find
inputs: Austrian Empire
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kingdom of Sardinia" .  } UNION { ?e <pred:name> "Austrian Empire" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Austrian Empire