query-070a4f0a2f9a6660a52c378d39590a81
Painters who enter public domain in a given year
Use at
- https://query.wikidata.org/sparql
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 ?author ?authorLabel ?country_of_citizenship ?country_of_citizenshipLabel WHERE {
?author wdt:P31 wd:Q5;
wdt:P106 wd:Q1028181;
wdt:P27 _:b1;
wdt:P570 ?died.
FILTER((YEAR(?died)) = ((YEAR(NOW())) - 71 ))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
OPTIONAL { ?author wdt:P27 ?country_of_citizenship. }
}
ORDER BY (?authorLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?author"):::projected
v1("?authorLabel"):::projected
v4("?country_of_citizenship"):::projected
v2("?died")
a1((" "))
c5(["wd:Q1028181"]):::iri
c9(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c11(["en"]):::literal
f0[["year-from-dateTime(?died) = year-from-dateTime(NOW()) - '71^^xsd:integer'"]]
f0 --> v2
v3 --"wdt:P31"--> c3
v3 --"wdt:P106"--> c5
v3 --"wdt:P27"--> a1
v3 --"wdt:P570"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P27".-> v4
end