query-6d2c8f16aabb12cca504971e3950c5a7

rq turtle/ttl

Propertieslocated in the administrative territorial entity (P131)instance of (P31)subclass of (P279)population (P1082)area (P2046)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?_population ?normalizedAreaSquaremeter WHERE {
 ?item wdt:P131 ?territory.
 ?territory wdt:P131* wd:Q1196.
 ?item (wdt:P31/wdt:P279*) wd:Q262166.
 ?item wdt:P1082 ?_population.
 SERVICE wikibase:label { bd:serviceParam wikibase:language "nds". }
 OPTIONAL {
   ?item p:P2046 [
     a wikibase:BestRank;
     psn:P2046/wikibase:quantityAmount ?normalizedAreaSquaremeter
   ].
 }
}
ORDER BY DESC(?_population)
LIMIT 25

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?_population"):::projected v2("?item"):::projected v4("?normalizedAreaSquaremeter"):::projected v3("?territory") a1((" ")) a2((" ")) a3((" ")) c12(["wikibase:BestRank"]):::iri c8(["bd:serviceParam"]):::iri c2(["wd:Q1196"]):::iri c5(["wd:Q262166"]):::iri c10(["nds"]):::literal v2 --"p:direct/P131"--> v3 v3 --"p:direct/P131"--> c2 v2 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c5 v2 --"p:direct/P1082"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; a2 -."a".-> c12 a2 --"p:statement/value-normalized/P2046"--> a3 a3 --"wikibase:quantityAmount"--> v4 v2 --"p:P2046"--> a2 end