query-86db0c0d0258b1d34d1a0cf363c4d156
Set preferred rank on census population of Quebec's municipalities YanikB: Request date: 6 April 2022, byLink to discussions justifying the requestTask description for 2016 census. (P1082)population 1-remove Preferred rank of
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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/>
SELECT ?item
WHERE {
{?item wdt:P31/wdt:P279* wd:Q3327873} UNION {?item wdt:P31 wd:Q81066200}
?item p:P1082 [ ps:P1082 ?population; pq:P459 wd:Q39825; pq:P585 ?date ] .
FILTER (?date = "2016-01-01T00:00:00Z"^^xsd:dateTime )
}
LIMIT 1500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date")
v2("?item"):::projected
v3("?population")
a1((" "))
a2((" "))
c4(["wd:Q3327873"]):::iri
c8(["wd:Q39825"]):::iri
c5(["wd:Q81066200"]):::iri
f0[["?date = '2016-01-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