Question: Is there less area in the Republic of the Congo (the one that has the captital Kinshasa) or in the Orange Free State?
Choices:
Socialist Federal Republic of Yugoslavia
Benin
Republic of the Congo
Weimar Republic
South Sudan
Russian Soviet Federative Socialist Republic
Kiribati
Samoa
Orange Free State
Switzerland
Program:
function: Find
inputs: Kinshasa
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Republic of the Congo
function: And
dependencies: 1
2
function: Find
inputs: Orange Free State
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Republic of the Congo" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Kinshasa" .   } UNION { ?e <pred:name> "Orange Free State" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Orange Free State