query-22e7721ace078b6759f7af0ec0e32f55

rq turtle/ttl

TODO

Use at

PREFIX wdsubgraph: <https://query.wikidata.org/subgraph/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?thesisType ?thesisTypeLabel (COUNT(DISTINCT ?thesis) AS ?count) 
WHERE {

 ?thesis wdt:P4101 wd:Q1048626;
         wdt:P31 ?thesisType.
  SERVICE wdsubgraph:wikidata_main { ?thesisType rdfs:label ?thesisTypeLabel .
    FILTER (LANG(?thesisTypeLabel) = 'en')  
  }
}  
GROUP BY ?thesisType ?thesisTypeLabel ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count") v2("?thesis"):::projected v3("?thesisType"):::projected v4("?thesisTypeLabel"):::projected c2(["wd:Q1048626"]):::iri v2 --"wdt:P4101"--> c2 v2 --"wdt:P31"--> v3 subgraph s1["https://query.wikidata.org/subgraph/wikidata_main"] style s1 stroke-width:4px; f0[["?thesisTypeLabel = 'en'"]] f0 --> v4 v3 --"rdfs:label"--> v4 end bind2[/"count(?thesis)"/] v2 --o bind2 bind2 --as--o v5