query-500cac7a7726b2a9f4770519dedc1646
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item (COUNT(DISTINCT ?sitelink) as ?articlecount) WHERE {
?item wdt:P570 ?deathdate;
wdt:P31 wd:Q5 .
FILTER (YEAR(?deathdate)=1945) .
?sitelink schema:about ?item .
?item p:P106 ?occupationStatement .
?occupationStatement ps:P106/wdt:P279* wd:Q2500638 .
MINUS { ?occupationStatement wikibase:rank wikibase:DeprecatedRank . }
} GROUP BY ?item ORDER BY DESC (?articlecount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?articlecount")
v2("?deathdate")
v3("?item"):::projected
v5("?occupationStatement")
v4("?sitelink"):::projected
a1((" "))
c9(["wd:Q2500638"]):::iri
c4(["wd:Q5"]):::iri
c11(["wikibase:DeprecatedRank"]):::iri
f0[["year-from-dateTime(?deathdate) = '1945^^xsd:integer'"]]
f0 --> v2
v3 --"p:direct/P570"--> v2
v3 --"p:direct/P31"--> c4
v4 --"schema:about"--> v3
v3 --"p:P106"--> v5
v5 --"p:statement/P106"--> a1
a1 --"p:direct/P279"--> c9
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v5 --"wikibase:rank"--> c11
end
bind3[/"count(?sitelink)"/]
v4 --o bind3
bind3 --as--o v6