query-ed6534d07c91b515fa84e7613fef535c
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (COUNT(DISTINCT ?sitelink) AS ?count) WHERE {
?item wdt:P21 wd:Q6581072.
?item wdt:P19/wdt:P131* wd:Q33 .
?sitelink schema:about ?item.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fi,sv,en,de,fr". }
MINUS {
?wfr schema:about ?item.
?wfr schema:isPartOf <https://fi.wikipedia.org/> .
}
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v2("?item"):::projected
v3("?sitelink"):::projected
v4("?wfr")
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["fi,sv,en,de,fr"]):::literal
c12([https://fi.wikipedia.org/]):::iri
c5(["wd:Q33"]):::iri
c2(["wd:Q6581072"]):::iri
v2 --"wdt:P21"--> c2
v2 --"wdt:P19"--> a1
a1 --"wdt:P131"--> c5
v3 --"schema:about"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"schema:about"--> v2
v4 --"schema:isPartOf"--> c12
end
bind2[/"count(?sitelink)"/]
v3 --o bind2
bind2 --as--o v5