What is the {comarca of Catalonia} with the {MIN(nominal GDP per capita)} whose {shares border with} is {Noguera}  ?
Does Comarca of Catalonia, on the border of Noguera, have the lowest per capita GDP?
Where is the Comarca of Catalonia, which shares border with Noguera, with the lowest nominal GDP per capita?
SELECT ?r WHERE { ?r property:shares_border_with resource:Noguera . ?r rdf:type ontology:comarca_of_Catalonia . ?r property:nominal_GDP_per_capita ?i }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q937876>.

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

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q937876 . ?ent wdt:P2132 ?obj . ?ent wdt:P47 wd:Q12726} ORDER BY ASC(?obj)LIMIT 5 
Pallars Jussà Alt Urgell Solsonès Urgell Pla d'Urgell