query-5283175a59390ae38c75f5cc7b4904a5
Propertiesinstance of (P31)subclass of (P279)based on (P144)
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 ?os ?osLabel (COUNT(?item) AS ?count)
WHERE
{
?item wdt:P31/wdt:P279* wd:Q9135.
?item wdt:P144 ?os.
?os wdt:P31/wdt:P279* wd:Q9135.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?os ?osLabel
ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v2("?item"):::projected
v3("?os"):::projected
a1((" "))
a2((" "))
c3(["wd:Q9135"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P144"--> v3
v3 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4