query-0ac819f0d1b760cb531757dfda1c918e
TODO
Use at
- https://query.wikidata.org/sparql
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/>
#defaultView:LineChart
#created by Mahir256
SELECT ?time ?number ?figure {
BIND(wd:Q87833915 as ?pandemic_item)
{ ?pandemic_item p:P1603 [ps:P1603 ?number ; pq:P585 ?time]. BIND("cases" as ?figure) }
UNION
{ ?pandemic_item p:P1120 [ps:P1120 ?number ; pq:P585 ?time]. BIND("deaths" as ?figure) }
UNION
{ ?pandemic_item p:P8010 [ps:P8010 ?number ; pq:P585 ?time]. BIND("recoveries" as ?figure) }
UNION
{ ?pandemic_item p:P8011 [ps:P8011 ?number ; pq:P585 ?time]. BIND("tests" as ?figure) }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?figure"):::projected
v2("?number"):::projected
v1("?pandemic_item")
v3("?time"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
bind0[/"'wd:Q87833915'"/]
bind0 --as--o v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
a4 --"p:statement/P8011"--> v2
a4 --"p:qualifier/P585"--> v3
v1 --"p:P8011"--> a4
bind1[/"'tests'"/]
bind1 --as--o v5
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
a3 --"p:statement/P8010"--> v2
a3 --"p:qualifier/P585"--> v3
v1 --"p:P8010"--> a3
bind2[/"'recoveries'"/]
bind2 --as--o v5
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
a2 --"p:statement/P1120"--> v2
a2 --"p:qualifier/P585"--> v3
v1 --"p:P1120"--> a2
bind3[/"'deaths'"/]
bind3 --as--o v5
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
a1 --"p:statement/P1603"--> v2
a1 --"p:qualifier/P585"--> v3
v1 --"p:P1603"--> a1
bind4[/"'cases'"/]
bind4 --as--o v5
end
union0r <== or ==> union0l
end