query-a50c5d93738953fff8ec34307388e022

rq turtle/ttl

OS Statistics

Use at

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 ?os ?osLabel (COUNT (DISTINCT ?floss) as ?count) WHERE {
  {
   ?floss p:P31 ?val.
   ?val ps:P31/wdt:P279* wd:Q506883.
  } Union {
   ?floss p:P31 ?val.
   ?val ps:P31/wdt:P279* wd:Q341.
  } Union {
   ?floss p:P31 ?val.
   ?val ps:P31/wdt:P279* wd:Q1130645.
  }

  ?floss wdt:P306 ?os

   SERVICE wikibase:label {
     bd:serviceParam wikibase: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; v5("?count") v2("?floss"):::projected v4("?os"):::projected v3("?val") a1((" ")) a2((" ")) a3((" ")) c4(["wd:Q506883"]):::iri c9(["bd:serviceParam"]):::iri c6(["wd:Q1130645"]):::iri c11(["en"]):::literal c5(["wd:Q341"]):::iri 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; v2 --"p:P31"--> v3 v3 --"p:statement/P31"--> a3 a3 --"p:direct/P279"--> c6 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P31"--> v3 v3 --"p:statement/P31"--> a2 a2 --"p:direct/P279"--> c5 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P31"--> v3 v3 --"p:statement/P31"--> a1 a1 --"p:direct/P279"--> c4 end union0r <== or ==> union0l end v2 --"p:direct/P306"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end bind1[/"count(?floss)"/] v2 --o bind1 bind1 --as--o v5