query-424ae51f167d1179a5c3ccd7eca3445e
Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279) Propertiesinstance of (P31)cause of death (P509)date of death (P570)subclass of (P279)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:AreaChart
SELECT ?cod (STR(SAMPLE(?yearOfDeath)) AS ?YEAR_Of_DEATH) (COUNT(*) AS ?NUMBER_OF_DEATHS) ?cause WHERE {
?pid wdt:P31 wd:Q5; # instance of human
wdt:P509 ?cod; # cause of death
wdt:P570 ?_date_of_death.
?cod wdt:P279* wd:Q12078. # type of cancer
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?cod rdfs:label ?cause. }
BIND ( YEAR(?_date_of_death) AS ?yearOfDeath )
FILTER( ?yearOfDeath > 1960 )
}
GROUP BY ?cod ?cause ?yearOfDeath
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/ja
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/tr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/zh