Question: Which one of the republic, having a diplomatic relation with Peru, has the highest nominal GDP per capita ?
Choices: France
Bolivia
Germany
Italy
Paraguay
Namibia
Indonesia
Sierra Leone
Colombia
Serbia
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Peru" .  ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Peru
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 1
inputs: republic
function: SelectAmong
dependencies: 2
inputs: nominal GDP per capita
largest
Answer: Germany