Question: Which has the smallest GDP (PPP) among the states that have a diplomatic relation with Slovenia?
Choices:
Bulgaria
Cuba
Tajikistan
Fiji
Lithuania
Denmark
Croatia
Moldova
Kosovo
Kazakhstan
Program:
function: Find
inputs: Slovenia
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: FilterConcept
dependencies: 1
inputs: state
function: SelectAmong
dependencies: 2
inputs: GDP (PPP)
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Slovenia" .  ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kosovo