query-d3c4f900a2c440b475f3575a46c06ac5
Estimation de population 2021 des MRC
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?locLabel (SUM(?population) AS ?totalPopulation)
WHERE {
{?item wdt:P31/wdt:P279* wd:Q3327873} UNION {?item wdt:P31 wd:Q81066200}
?item p:P1082 [ ps:P1082 ?population; pq:P459 wd:Q29051383; pq:P585 ?date ] .
FILTER (?date >= "2020-07-01T00:00:00Z"^^xsd:dateTime )
?item wdt:P131 ?loc.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" }
}
GROUP BY ?locLabel
LIMIT 1500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date")
v2("?item")
v4("?loc")
v3("?population"):::projected
v5("?totalPopulation")
a1((" "))
a2((" "))
c5(["wd:Q81066200"]):::iri
c4(["wd:Q3327873"]):::iri
c8(["wd:Q29051383"]):::iri
c13(["bd:serviceParam"]):::iri
c15(["fr,en"]):::literal
f0[["?date >= '2020-07-01T00:00:00Z^^xsd:dateTime'"]]
f0 --> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c4
end
union0r <== or ==> union0l
end
a2 --"p:statement/P1082"--> v3
a2 --"p:qualifier/P459"--> c8
a2 --"p:qualifier/P585"--> v1
v2 --"p:P1082"--> a2
v2 --"p:direct/P131"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end
bind2[/"sum(?population)"/]
v3 --o bind2
bind2 --as--o v5