query-daf4498d592f2b960eb243f97c6d59d3
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?countryLabel ?date ?cases ?deaths ?recoveries
Where
{
VALUES ?country {wd:Q142 wd:Q34 wd:Q38 wd:Q183}
wd:Q86458103 p:P17 ?countryStatement.
?countryStatement ps:P17 ?country.
?countryStatement pq:P805 ?statement.
?statement p:P1120 ?deathStatement.
?deathStatement pq:P585 ?date.
?deathStatement a wikibase:BestRank.
?deathStatement ps:P1120 ?deaths.
?statement p:P1603 ?caseStatement.
?caseStatement pq:P585 ?date.
?caseStatement a wikibase:BestRank.
?caseStatement ps:P1603 ?cases.
?statement p:P8010 ?recStatement.
?recStatement pq:P585 ?date.
?recStatement a wikibase:BestRank.
?recStatement ps:P8010 ?recoveries.
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;
v7("?caseStatement")
v8("?cases"):::projected
v1("?country")
v2("?countryStatement")
v5("?date"):::projected
v4("?deathStatement")
v6("?deaths"):::projected
v9("?recStatement")
v10("?recoveries"):::projected
v3("?statement")
c8(["wikibase:BestRank"]):::iri
c15(["bd:serviceParam"]):::iri
c1(["wd:Q86458103"]):::iri
c17(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?country/]
bind0-->v1
bind00(["wd:Q142"])
bind00 --> bind0
bind01(["wd:Q34"])
bind01 --> bind0
bind02(["wd:Q38"])
bind02 --> bind0
bind03(["wd:Q183"])
bind03 --> bind0
c1 --"p:P17"--> v2
v2 --"p:statement/P17"--> v1
v2 --"p:qualifier/P805"--> v3
v3 --"p:P1120"--> v4
v4 --"p:qualifier/P585"--> v5
v4 --"a"--> c8
v4 --"p:statement/P1120"--> v6
v3 --"p:P1603"--> v7
v7 --"p:qualifier/P585"--> v5
v7 --"a"--> c8
v7 --"p:statement/P1603"--> v8
v3 --"p:P8010"--> v9
v9 --"p:qualifier/P585"--> v5
v9 --"a"--> c8
v9 --"p:statement/P8010"--> v10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end