query-3186dbd44efefcc8c3cd061bbc396e52

rq turtle/ttl

Synia: Composers

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT 
  ?works
  ?composer ?composerLabel
  (CONCAT("#composer/", SUBSTR(STR(?composer), 32)) AS ?composerUrl)
  ?composerDescription
WHERE {
   {
  SELECT 
    (COUNT(?work) AS ?works)
    ?composer
  WHERE {
    ?work wdt:P86 ?composer
  }
  GROUP BY ?composer
  ORDER BY DESC(?works)
  LIMIT 1000
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?works)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?composer"):::projected v4("?composerUrl") v2("?work") v4("?works"):::projected c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P86"--> v3 bind1[/"count(?work)"/] v2 --o bind1 bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end bind2[/"concat('#composer/',substring(str(?composer),'32^^xsd:integer'))"/] v3 --o bind2 bind2 --as--o v4