What is the {public office} with the {MIN(base salary)} whose {country} is {Republic of New Granada}  ?
In the Republic of New Granada, what is the public office with the lowest base salary?
What is the public office with the lowest base salary whose country is Republic of New Granada?
SELECT ?z WHERE { ?z rdf:type ontology:public_office . ?z property:base_salary ?c . ?z property:country resource:Republic_of_New_Granada . }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q294414>.

?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/P3618>.
?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/P17> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q630882> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q294414 . ?ent wdt:P3618 ?obj . ?ent wdt:P17 wd:Q630882. } ORDER BY ASC(?obj)LIMIT 5 