Question: Among the forms of government that share a border with Chad, which has the largest PPP GDP per capita?
Choices:
Niger
Namibia
Tunisia
Germany
Colombia
Sudan
Zimbabwe
Sierra Leone
Mozambique
Bolivia
Program:
function: Find
inputs: Chad
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: form of government
function: SelectAmong
dependencies: 2
inputs: PPP GDP per capita
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Chad" .  ?e <PPP_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sudan