SARS-CoV-2-Queries

earthAllCasesToday.rq

Code examples: curl

SPARQL

SELECT ?numberOfCases  WHERE {
  wd:Q81068910 wdt:P1603 ?numberOfCases .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
} ORDER BY DESC(?numberOfCases)

run or edit

Output

numberOfCases
312173462

Code examples

curl

curl -s https://raw.githubusercontent.com/egonw/SARS-CoV-2-Queries/master/sparql/earthAllCasesToday.rq | sed 's+<lang/>+en+' > earthAllCasesToday.rq

curl -H "Accept: text/tab-separated-values" -G https://query.wikidata.org/bigdata/namespace/wdq/sparql --data-urlencode query@earthAllCasesToday.rq

This SPARQL query is available under CCZero.