What is the {sovereign state} with the {MIN(central government debt as a percent of GDP)} whose {diplomatic relation} is {Bolivia}  ?
which Bolivian ally has the lowest debt per percent of GDP?
Which sovereign state diplomatically related to Bolivia has the least central government debt as a percent of GDP?
SELECT ?q WHERE { ?q rdf:type ontology:sovereign_state . ?q property:central_government_debt_as_a_percent_of_GDP ?z . ?q property:diplomatic_relation resource:Bolivia . }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3624078>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1689>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P530> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q750> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q3624078 . ?ent wdt:P1689 ?obj . ?ent wdt:P530 wd:Q750. } ORDER BY ASC(?obj)LIMIT 5 
Australia Australia