query-59f3763e1dbc7466fc6ff37a849e7afc

rq turtle/ttl

Propertiesinstance of (P31)country of citizenship (P27)date of death (P570)

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 wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?date
WHERE {
?date_node wikibase:timePrecision "11"^^xsd:integer .
?date_node wikibase:timeValue ?date .
FILTER (year(?date) > 1898 && day(?date) = day(now()) && month(?date) = month(now()))
?item p:P570/psv:P570 ?date_node .
?item wdt:P31 wd:Q5 .
?item wdt:P27 wd:Q668 .
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .}
}
ORDER BY DESC(?date) ?item LIMIT 123

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date"):::projected v3("?date_node") v2("?item"):::projected a1((" ")) c3(["11^^xsd:integer"]):::literal c12(["bd:serviceParam"]):::iri c10(["wd:Q668"]):::iri c8(["wd:Q5"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["year-from-dateTime(?date) > '1898^^xsd:integer'day-from-dateTime(?date) = day-from-dateTime(NOW())month-from-dateTime(?date) = month-from-dateTime(NOW())"]] f0 --> v1 v3 --"wikibase:timePrecision"--> c3 v3 --"wikibase:timeValue"--> v1 v2 --"p:P570"--> a1 a1 --"p:statement/value/P570"--> v3 v2 --"p:direct/P31"--> c8 v2 --"p:direct/P27"--> c10 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end