What is the {comarca of Catalonia} with the {MAX(nominal GDP)} ?
Name the comarca of Catalonia that has the highest nominal GDP?
Which comarca of Catalonia has the highest nominal GDP?
SELECT ?y WHERE { ?y property:nominal_GDP ?u . ?y rdf:type ontology:comarca_of_Catalonia }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q937876>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2131>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .}
ORDER BY DESC(?obj)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q937876 . ?ent wdt:P2131 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Barcelonès Vallès Occidental Baix Llobregat Vallès Oriental Maresme