Question: Among the republics which are a part of Latin America,which one has the smallest area ?
Choices:
Germany
Tunisia
Italy
Mozambique
Zimbabwe
Sierra Leone
Namibia
Bolivia
France
Paraguay
Program:
function: Find
inputs: Latin America
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: republic
function: SelectAmong
dependencies: 2
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Latin America" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Paraguay