Question: Which country sharing a border with Malawi has the smallest real gross domestic product growth rate?
Choices:
Mozambique
Sierra Leone
Zambia
Italy
Namibia
Bolivia
Tanzania
Tunisia
Colombia
Zimbabwe
Program:
function: Find
inputs: Malawi
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: republic
function: SelectAmong
dependencies: 2
inputs: real gross domestic product growth rate
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Malawi" .  ?e <real_gross_domestic_product_growth_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Zambia