Question: Which one, England (the one that is the country of Isle of Wight) or Austria-Hungary, has greater population?
Choices:
Benin
Samoa
Socialist Federal Republic of Yugoslavia
Kiribati
Cambodia
England
Austria-Hungary
Russian Soviet Federative Socialist Republic
Switzerland
Weimar Republic
Program:
function: Find
inputs: Isle of Wight
function: Relate
dependencies: 0
inputs: country
forward
function: Find
inputs: England
function: And
dependencies: 1
2
function: Find
inputs: Austria-Hungary
function: SelectBetween
dependencies: 3
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "England" . ?e_1 <country> ?e . ?e_1 <pred:name> "Isle of Wight" .   } UNION { ?e <pred:name> "Austria-Hungary" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Austria-Hungary