query-6ba36ec2dbbf4653bdba8f6970fbecab
Propertiessubclass of (P279)developer (P178)instance of (P31)
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?developer ?developerLabel (COUNT(?software) AS ?count) WHERE {
?software (p:P31/ps:P31/wdt:P279*) wd:Q7397.
?software wdt:P178 ?developer.
?developer wdt:P31 wd:Q5
MINUS {?software wdt:P31/wdt:P279* wd:Q7889.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?developer ?developerLabel
ORDER BY DESC(?count)
LIMIT 50
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?developer"):::projected
v2("?software"):::projected
a1((" "))
a2((" "))
a3((" "))
c4(["wd:Q7397"]):::iri
c10(["bd:serviceParam"]):::iri
c7(["wd:Q5"]):::iri
c8(["wd:Q7889"]):::iri
c12(["en"]):::literal
v2 --"p:P31"--> a1
a1 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c4
v2 --"p:direct/P178"--> v3
v3 --"p:direct/P31"--> c7
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P31"--> a3
a3 --"p:direct/P279"--> c8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind2[/"count(?software)"/]
v2 --o bind2
bind2 --as--o v4