query-2425e182514018aeae52dd5f6dc2610c
title: Authors of works that use software
SELECT DISTINCT ?author ?authorLabel ?count
WITH {
SELECT DISTINCT ?work WHERE {
?work wdt:P4510 ?use .
?use wdt:P1324 [] .
}
}
AS %papers
WITH {
SELECT ?author (COUNT(DISTINCT ?work) AS ?count) WHERE {
INCLUDE %papers
?work wdt:P50 ?author .
}
GROUP BY ?author
HAVING ( ?count > 10)
}
AS %authors
WHERE {
INCLUDE %authors
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?author ?authorLabel ?count
ORDER BY DESC(?count)
LIMIT 200
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Authors of works that use software
SELECT DISTINCT ?author ?authorLabel ?count
WHERE {
{
SELECT ?author (COUNT(DISTINCT ?work) AS ?count) WHERE {
{
SELECT DISTINCT ?work WHERE {
?work wdt:P4510 ?use .
?use wdt:P1324 [] .
}
} ?work wdt:P50 ?author .
}
GROUP BY ?author
HAVING ( ?count > 10)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?author ?authorLabel ?count
ORDER BY DESC(?count)
LIMIT 200
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?author"):::projected
v5("?count"):::projected
v3("?use")
v2("?work")
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?count > '10^^xsd:integer'"]]
f0 --> v5
v2 --"wdt:P4510"--> v3
v3 --"wdt:P1324"--> a1
v2 --"wdt:P50"--> v4
bind2[/"count(?work)"/]
v2 --o bind2
bind2 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end