query-e2b8e9872fe8295c5a4f3fd8c438d8d6
Debrecen
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (MAX(?population) AS ?pop)
WHERE {
?item wdt:P31/wdt:P279* wd:Q14502790 .
FILTER (?item NOT IN (wd:Q1781, wd:Q79880)) .
?item wdt:P1082 ?population .
SERVICE wikibase:label { bd:serviceParam wikibase:language "hu". }
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?pop)
LIMIT 50
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?pop")
v3("?population"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c5(["wd:Q14502790"]):::iri
c10(["hu"]):::literal
f0[["?item != 'wd:Q1781'?item != 'wd:Q79880'"]]
f0 --> v2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v2 --"wdt:P1082"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"max(?population)"/]
v3 --o bind2
bind2 --as--o v4