query-b98f58f71e4da179f127fe205dbaa5b2

rq turtle/ttl

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 1500 LIMIT } ) dateTime:xsd^^"2016-01-01T00:00:00Z" = ?date( FILTER . ] ?date P585:pq ;Q39825:wd P459:pq ;?population P1082:ps [ P1082:p ?item }Q81066200:wd P31:wdt ?item{ UNION }Q3327873:wd *P279:wdt/P31:wdt ?item{ { WHERE ?item SELECT to Preferred rank for 2021 census. (P1082)population 2-Change

Use at

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  >= "2021-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 >= '2021-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