query-85c0896bdec3d3c7789588db3cc4c500
mw:Wikibase/Indexing/RDF Dump Format
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?country ?countryLabel ?deaths ?date
WHERE
{
#Get the country
wd:Q84104992 wdt:P17 ?country.
#Get number of deaths
wd:Q84104992 p:P1120 ?deaths_statement.
?deaths_statement a wikibase:BestRank.
?deaths_statement ps:P1120 ?deaths.
#Get dates for deaths
?deaths_statement pq:P585 ?date.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?country"):::projected
v4("?date"):::projected
v3("?deaths"):::projected
v2("?deaths_statement")
c9(["bd:serviceParam"]):::iri
c5(["wikibase:BestRank"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1(["wd:Q84104992"]):::iri
c1 --"p:direct/P17"--> v1
c1 --"p:P1120"--> v2
v2 --"a"--> c5
v2 --"p:statement/P1120"--> v3
v2 --"p:qualifier/P585"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end