query-2937d80dc3c567508ee6f2986dae1e5c
Most prolific creators/contributors/publishers
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?count ?creator ?creatorLabel ?sample ?sampleLabel WHERE {
{
SELECT (COUNT(DISTINCT(?map)) AS ?count) ?creator (SAMPLE(?map) AS ?sample) WHERE {
?class wdt:P195 wd:Q56753539 . # KTop
?map wdt:P195 ?class .
?map (wdt:P170|wdt:P767|wdt:P123) ?creator .
} GROUP BY ?creator ?creatorLabel
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count) ?creatorLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?class")
v6("?count"):::projected
v5("?creator"):::projected
v2("?creatorLabel"):::projected
v4("?map")
v6("?sample"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q56753539"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v3 --"wdt:P195"--> c2
v4 --"wdt:P195"--> v3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P123"--> v5
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P767"--> v5
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P170"--> v5
end
union0r <== or ==> union0l
end
bind2[/"count(?map)"/]
v4 --o bind2
bind2 --as--o v6
bind3[/"sample(?map)"/]
v4 --o bind3
bind3 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end