Question: Does Brandenburg (that is an administrative division of the German Democratic Republic) or Western Cape have the larger population?
Choices:
Lublin Voivodeship
Brandenburg
Upper Austria
Minas Gerais
New South Wales
Punjab
Greater Poland Voivodeship
England
Podlaskie Voivodeship
Western Cape
Answer: Western Cape
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brandenburg" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "German Democratic Republic" .   } UNION { ?e <pred:name> "Western Cape" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: German Democratic Republic
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Brandenburg
function: And
dependencies: 1
2
function: Find
inputs: Western Cape
function: SelectBetween
dependencies: 3
4
inputs: population
greater