query-3e56e5ec218d73ae1e1fdd258a528aa0
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ?item ?itemLabel (YEAR(?dod) as ?year) WHERE
{
?item wdt:P106 wd:Q2526255 .
?item wdt:P27 wd:Q20 .
?item wdt:P570 ?dod .
FILTER("1953-12-31"^^xsd:date >= ?dod)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nn,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dod"):::projected
v2("?item"):::projected
v3("?year")
c8(["bd:serviceParam"]):::iri
c3(["wd:Q2526255"]):::iri
c5(["wd:Q20"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,nn,en"]):::literal
f0[["'1953-12-31^^xsd:date' >= ?dod"]]
f0 --> v1
v2 --"wdt:P106"--> c3
v2 --"wdt:P27"--> c5
v2 --"wdt:P570"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"year-from-dateTime(?dod)"/]
v1 --o bind1
bind1 --as--o v3