query-650461bdf5568525347e2a45de239880

rq turtle/ttl

.on Mastodon and on TwitterOriginally posted

Use at

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 DISTINCT ?composer ?composerLabel ?composerDescription ?died ?sitelinks WHERE {
  ?composer wdt:P31 wd:Q5;
            wdt:P21/wdt:P279? wd:Q6581072;
            wdt:P106/wdt:P279* wd:Q36834;
            wdt:P136 wd:Q185652;
            wdt:P570 ?died;
            wikibase:sitelinks ?sitelinks.
  FILTER(YEAR(?died) < YEAR(NOW()) - 70)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?died

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?composer"):::projected v1("?died"):::projected v3("?sitelinks"):::projected a1((" ")) a2((" ")) c5(["wd:Q6581072"]):::iri c10(["wd:Q185652"]):::iri c14(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal c8(["wd:Q36834"]):::iri f0[["year-from-dateTime(?died) < year-from-dateTime(NOW()) - '70^^xsd:integer'"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P21"--> a1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P279"--> c5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; end union0r <== or ==> union0l end v2 --"wdt:P106"--> a2 a2 --"wdt:P279"--> c8 v2 --"wdt:P136"--> c10 v2 --"wdt:P570"--> v1 v2 --"wikibase:sitelinks"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end