Question: Which has fewer people, Saxony (the one that is located in German Democratic Republic) or Eastern Cape?
Choices:
Greater Poland Voivodeship
Punjab
Chiapas
Saxony
Minas Gerais
England
Lublin Voivodeship
New South Wales
Podlaskie Voivodeship
Upper Austria
Program:
function: Find
inputs: German Democratic Republic
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Saxony
function: And
dependencies: 1
2
function: Find
inputs: Eastern Cape
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saxony" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "German Democratic Republic" .   } UNION { ?e <pred:name> "Eastern Cape" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Saxony