Question: Which has less population, England (which has military conflicts with the Swedish Empire) or the Kingdom of Sardinia?
Choices:
Cambodia
Socialist Federal Republic of Yugoslavia
Weimar Republic
England
Kingdom of Sardinia
Kiribati
Russian Soviet Federative Socialist Republic
Samoa
South Sudan
Benin
Program:
function: Find
inputs: Swedish Empire
function: Relate
dependencies: 0
inputs: military conflicts
forward
function: Find
inputs: England
function: And
dependencies: 1
2
function: Find
inputs: Kingdom of Sardinia
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "England" . ?e_1 <military_conflicts> ?e . ?e_1 <pred:name> "Swedish Empire" .   } UNION { ?e <pred:name> "Kingdom of Sardinia" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kingdom of Sardinia