query-0332597850da25ada667ae07d194594f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?item (COUNT(?sitelink) AS ?slcnt) WHERE {
?item wdt:P106 wd:Q82955 .
FILTER NOT EXISTS { ?wen schema:about ?item; schema:isPartOf <https://en.wikipedia.org/> . }
?item wdt:P21 wd:Q6581072 .
?item wdt:P31 wd:Q5 .
OPTIONAL { ?sitelink schema:about ?item . }
} GROUP BY(?item) ORDER BY DESC(?slcnt) LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v4("?sitelink"):::projected
v5("?slcnt")
v2("?wen")
c3([https://en.wikipedia.org/]):::iri
c9(["wd:Q5"]):::iri
c7(["wd:Q6581072"]):::iri
c5(["wd:Q82955"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v2("?item"):::projected
e0v1("?wen"):::projected
e0c3([https://en.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
f0 --> c2
f0 --> c3
v2 --"schema:about"--> v3
v2 --"schema:isPartOf"--> c3
v3 --"wdt:P106"--> c5
v3 --"wdt:P21"--> c7
v3 --"wdt:P31"--> c9
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v3
end
bind2[/"count(?sitelink)"/]
v4 --o bind2
bind2 --as--o v5