query-42ecc2baea31fd4178b03ff26a62ca55

rq turtle/ttl

Propertieslocated in the administrative territorial entity (P131)instance of (P31)population (P1082)point in time (P585)determination method or standard (P459)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?municipality ?municipalityLabel ?pointInTime ?methodeLabel WHERE {

 ?municipality wdt:P131+ wd:Q10410;
               wdt:P31 wd:Q262166;
               p:P1082 ?populationStatement.
 ?populationStatement pq:P585 ?pointInTime.
 OPTIONAL { ?populationStatement pq:P459 ?methode }.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
} 
order by ?municipalityLabel ?pointInTime

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?methode") v3("?municipality"):::projected v1("?municipalityLabel"):::projected v2("?pointInTime"):::projected v4("?populationStatement") c11(["de"]):::literal c9(["bd:serviceParam"]):::iri c4(["wd:Q262166"]):::iri c2(["wd:Q10410"]):::iri v3 --"p:direct/P131"--> c2 v3 --"p:direct/P31"--> c4 v3 --"p:P1082"--> v4 v4 --"p:qualifier/P585"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P459".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end