Question: Of the democracies that share a border with South Africa, which has the lowest GDP (PPP)?
Choices:
Italy
Tunisia
Mozambique
Colombia
Namibia
Sierra Leone
Malawi
Zimbabwe
Germany
Bolivia
Answer: Namibia
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "South Africa" .  ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: South Africa
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: democracy
function: SelectAmong
dependencies: 2
inputs: GDP (PPP)
smallest