query-345e18bc9da3b83ee7a880938154a127
PropertiesGRID ID (P2427)developer (P178)instance of (P31)subclass of (P279)
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 ?item ?itemLabel (COUNT(?software) AS ?count)
WHERE
{
?item wdt:P2427 ?value .
?software wdt:P178 ?item.
?software wdt:P31/wdt:P279* wd:Q7397.
MINUS {?software wdt:P31/wdt:P279* wd:Q7889.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
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
v4("?software"):::projected
v3("?value")
a1((" "))
a2((" "))
c5(["wd:Q7397"]):::iri
c8(["bd:serviceParam"]):::iri
c6(["wd:Q7889"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P2427"--> v3
v4 --"wdt:P178"--> v2
v4 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"count(?software)"/]
v4 --o bind2
bind2 --as--o v5