Question: Which Latin American Democracy has the largest nominal GDP per capita.
Choices:
Namibia
Colombia
Bolivia
Italy
Germany
Tunisia
France
Zimbabwe
Paraguay
Mozambique
Program:
function: Find
inputs: Latin America
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: democracy
function: SelectAmong
dependencies: 2
inputs: nominal GDP per capita
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Latin America" .  ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Colombia