query-e46ca25221dbc697f07b5dc714376964

rq turtle/ttl

TODO

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?tonalityLabel (COUNT(?tonalityLabel) as ?count) WHERE {     
  ?work wdt:P826 ?tonality.
  ?work wdt:P577 ?published.
  FILTER (?published > "1800-01-01"^^xsd:date && ?published < "1900-01-01"^^xsd:dat).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
GROUP BY ?tonalityLabel
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?count") v2("?published") v4("?tonality") v5("?tonalityLabel"):::projected v3("?work") c6(["bd:serviceParam"]):::iri c8(["en"]):::literal f0[["?published > '1800-01-01^^xsd:date'?published < s1900-01-01^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v2 v3 --"wdt:P826"--> v4 v3 --"wdt:P577"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/"count(?tonalityLabel)"/] v5 --o bind2 bind2 --as--o v6