{"id":943,"date":"2023-01-03T22:24:38","date_gmt":"2023-01-03T20:24:38","guid":{"rendered":"http:\/\/tuijasonkkila.fi\/?p=943"},"modified":"2024-09-20T13:18:11","modified_gmt":"2024-09-20T10:18:11","slug":"wikidata-and-covid-19","status":"publish","type":"post","link":"https:\/\/tuijasonkkila.fi\/?p=943","title":{"rendered":"Wikidata and COVID-19"},"content":{"rendered":"\n<p>COVID-19 has come to stay with us, but we can still take a deep breath today and look back at what has happened so far. On an individual level, quite a lot of us didn&#8217;t survive. How many of these people can we found in Wikidata? What do we know about them? Let&#8217;s start closest to where I live, Europe.<\/p>\n\n\n\n<p>The following query counts deaths by country in the Nordic countries, the EU, United Kingdom and Switzerland. It also gives the age of the youngest and oldest person in that particular group of people. <a href=\"https:\/\/query.wikidata.org\/#SELECT%20%3FcountryLabel%20%28MIN%28%3Fage%29%20AS%20%3Fyoungest%29%20%28MAX%28%3Fage%29%20AS%20%3Foldest%29%20%28COUNT%28%3Fperson%29%20AS%20%3FdeathsInCovid%29%0A%20%20WITH%20%7B%0A%20%20%20%20SELECT%20DISTINCT%20%3Fcountry%20%3Fperson%20%3Fbirth_date%20%3Fdeath_date%20WHERE%20%7B%0A%20%20%20%20%20%20%3Fperson%20wdt%3AP31%20wd%3AQ5%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP569%2Fpsv%3AP569%20%3Fbirth_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP570%2Fpsv%3AP570%20%3Fdeath_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP509%20wd%3AQ84263196%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP27%20%3Fcountry.%0A%20%20%20%20%20%20%3Fbirth_date_node%20wikibase%3AtimeValue%20%3Fbirth_date%20.%0A%20%20%20%20%20%20%3Fdeath_date_node%20wikibase%3AtimeValue%20%3Fdeath_date%20.%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP361%20wd%3AQ52062%20%7D%20%23%20Nordic%20countries%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP463%20wd%3AQ458%20%7D%20%23%20EU%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ145%20%7D%20%23%20UK%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ39%20%7D%20%23%20Switzerland%0A%20%20%20%20%7D%20%0A%20%20%20%7D%20AS%20%25personsDeadByCovid%0A%0A%20%20%20WHERE%20%7B%0A%20%20%20%20%20INCLUDE%20%25personsDeadByCovid.%0A%20%20%20%20%20BIND%28%20year%28%3Fdeath_date%29%20-%20year%28%3Fbirth_date%29%20-%20if%28month%28%3Fdeath_date%29%3Cmonth%28%3Fbirth_date%29%20%7C%7C%20%28month%28%3Fdeath_date%29%3Dmonth%28%3Fbirth_date%29%20%26%26%20day%28%3Fdeath_date%29%3Cday%28%3Fbirth_date%29%29%2C1%2C0%29%20as%20%3Fage%20%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%20%7D%20%0A%20%20%20%7D%0A%0AGROUP%20BY%20%3FcountryLabel%0AORDER%20BY%20%3FcountryLabel\">Try it!<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT ?countryLabel (MIN(?age) AS ?youngest) (MAX(?age) AS ?oldest (COUNT(?person) AS ?deathsInCovid)<br>   WITH {<br>     SELECT DISTINCT ?country ?person ?birth_date ?death_date WHERE {<br>       ?person wdt:P31 wd:Q5 ; <br>               p:P569\/psv:P569 ?birth_date_node ;<br>               p:P570\/psv:P570 ?death_date_node ;<br>               wdt:P509 wd:Q84263196 ;  # cause of death: COVID-19<br>               wdt:P27 ?country.<br>       ?birth_date_node wikibase:timeValue ?birth_date .<br>       ?death_date_node wikibase:timeValue ?death_date .<br>       { ?country wdt:P361 wd:Q52062 } # Nordic countries<br>       UNION<br>       { ?country wdt:P463 wd:Q458 } # EU<br>       UNION<br>       { ?country wdt:P17 wd:Q145 } # UK<br>       UNION<br>       { ?country wdt:P17 wd:Q39 } # Switzerland<br>     } <br>    } AS %personsDeadByCovid<br><br>WHERE {<br>      INCLUDE %personsDeadByCovid.<br>      BIND(  year(?death_date) - year(?birth_date) -  if(month(?death_date)&lt;month(?birth_date) ||  (month(?death_date)=month(?birth_date) &amp;&amp;  day(?death_date)&lt;day(?birth_date)),1,0) as ?age )                 <br>      SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE],en\".  } <br>    } <br><br>GROUP BY ?countryLabel<br>ORDER BY ?countryLabel<br><\/pre>\n\n\n\n<p>What was the name of these 1000+ persons? What did they do for living? Did they die at a young age, or were they already old? <a href=\"https:\/\/query.wikidata.org\/#SELECT%20%28SAMPLE%28%3FcountryLabel%29%20AS%20%3FcountryOfCitizenship%29%20%3FpersonLabel%20%3Fage%20%28GROUP_CONCAT%28%3FoccLabel%3B%20SEPARATOR%3D%22%2C%20%22%29%20AS%20%3Foccupations%29%0A%20%20WITH%20%7B%0A%20%20%20%20SELECT%20DISTINCT%20%3Fcountry%20%3Fperson%20%3Fbirth_date%20%3Fdeath_date%20%3Focc%20WHERE%20%7B%0A%20%20%20%20%20%20%3Fperson%20wdt%3AP31%20wd%3AQ5%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP569%2Fpsv%3AP569%20%3Fbirth_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP570%2Fpsv%3AP570%20%3Fdeath_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP509%20wd%3AQ84263196%20%3B%20%23%20death%20cause%20is%20COVID-19%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP27%20%3Fcountry%20.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3Fperson%20wdt%3AP106%20%3Focc.%20%7D%20%20%23%20occupation%0A%20%20%20%20%20%20%3Fbirth_date_node%20wikibase%3AtimeValue%20%3Fbirth_date%20.%0A%20%20%20%20%20%20%3Fdeath_date_node%20wikibase%3AtimeValue%20%3Fdeath_date%20.%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP361%20wd%3AQ52062%20%7D%20%23%20Nordic%20countries%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP463%20wd%3AQ458%20%7D%20%23%20EU%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ145%20%7D%20%23%20UK%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ39%20%7D%20%23%20Switzerland%0A%20%20%20%20%7D%20%0A%20%20%20%7D%20AS%20%25personsDeadByCovid%0A%0A%20%20%20WHERE%20%7B%0A%20%20%20%20%20INCLUDE%20%25personsDeadByCovid.%0A%20%20%20%20%20BIND%28%20year%28%3Fdeath_date%29%20-%20year%28%3Fbirth_date%29%20-%20if%28month%28%3Fdeath_date%29%3Cmonth%28%3Fbirth_date%29%20%7C%7C%20%28month%28%3Fdeath_date%29%3Dmonth%28%3Fbirth_date%29%20%26%26%20day%28%3Fdeath_date%29%3Cday%28%3Fbirth_date%29%29%2C1%2C0%29%20as%20%3Fage%20%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20%0A%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%3Fperson%20rdfs%3Alabel%20%3FpersonLabel.%0A%20%20%20%20%20%20%20%3Fcountry%20rdfs%3Alabel%20%3FcountryLabel.%0A%20%20%20%20%20%20%20%3Focc%20rdfs%3Alabel%20%3FoccLabel%20%0A%20%20%20%20%20%20%7D%20%20%20%0A%20%20%20%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0AGROUP%20BY%20%3FpersonLabel%20%3Fage%0AORDER%20BY%20%3FcountryOfCitizenship%20%3Fage%0A\">Try <\/a><a href=\"https:\/\/query.wikidata.org\/#SELECT%20%3FcountryLabel%20%3FpersonLabel%20%3Fage%20%28GROUP_CONCAT%28%3FoccLabel%3B%20SEPARATOR%3D%22%2C%20%22%29%20AS%20%3Foccupations%29%0A%20%20WITH%20%7B%0A%20%20%20%20SELECT%20DISTINCT%20%3Fcountry%20%3Fperson%20%3Fbirth_date%20%3Fdeath_date%20%3Focc%20WHERE%20%7B%0A%20%20%20%20%20%20%3Fperson%20wdt%3AP31%20wd%3AQ5%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP569%2Fpsv%3AP569%20%3Fbirth_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP570%2Fpsv%3AP570%20%3Fdeath_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP509%20wd%3AQ84263196%20%3B%20%23%20death%20cause%20is%20COVID-19%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP27%20%3Fcountry%20.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%20%3Fperson%20wdt%3AP106%20%3Focc.%20%7D%20%20%23%20occupation%0A%20%20%20%20%20%20%3Fbirth_date_node%20wikibase%3AtimeValue%20%3Fbirth_date%20.%0A%20%20%20%20%20%20%3Fdeath_date_node%20wikibase%3AtimeValue%20%3Fdeath_date%20.%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP361%20wd%3AQ52062%20%7D%20%23%20Nordic%20countries%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP463%20wd%3AQ458%20%7D%20%23%20EU%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ145%20%7D%20%23%20UK%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ39%20%7D%20%23%20Switzerland%0A%20%20%20%20%7D%20%0A%20%20%20%7D%20AS%20%25personsDeadByCovid%0A%0A%20%20%20WHERE%20%7B%0A%20%20%20%20%20INCLUDE%20%25personsDeadByCovid.%0A%20%20%20%20%20BIND%28%20year%28%3Fdeath_date%29%20-%20year%28%3Fbirth_date%29%20-%20if%28month%28%3Fdeath_date%29%3Cmonth%28%3Fbirth_date%29%20%7C%7C%20%28month%28%3Fdeath_date%29%3Dmonth%28%3Fbirth_date%29%20%26%26%20day%28%3Fdeath_date%29%3Cday%28%3Fbirth_date%29%29%2C1%2C0%29%20as%20%3Fage%20%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20%0A%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%3Fperson%20rdfs%3Alabel%20%3FpersonLabel.%0A%20%20%20%20%20%20%20%3Fcountry%20rdfs%3Alabel%20%3FcountryLabel.%0A%20%20%20%20%20%20%20%3Focc%20rdfs%3Alabel%20%3FoccLabel%20%0A%20%20%20%20%20%20%7D%20%20%20%0A%20%20%20%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0AGROUP%20BY%20%3FcountryLabel%20%3FpersonLabel%20%3Fage%0AORDER%20BY%20%3FcountryLabel%20%3Fage%0A\">it!<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT (SAMPLE(?countryLabel) AS ?countryOfCitizenship) ?personLabel ?age (GROUP_CONCAT(?occLabel; SEPARATOR=\", \") AS ?occupations)<br>   WITH {<br>     SELECT DISTINCT ?country ?person ?birth_date ?death_date ?occ WHERE {<br>       ?person wdt:P31 wd:Q5 ; <br>               p:P569\/psv:P569 ?birth_date_node ;<br>               p:P570\/psv:P570 ?death_date_node ;<br>               wdt:P509 wd:Q84263196 ; # death cause is COVID-19<br>               wdt:P27 ?country .<br>               OPTIONAL { ?person wdt:P106 ?occ. }  # occupation<br>       ?birth_date_node wikibase:timeValue ?birth_date .<br>       ?death_date_node wikibase:timeValue ?death_date .<br>       { ?country wdt:P361 wd:Q52062 } # Nordic countries<br>       UNION<br>       { ?country wdt:P463 wd:Q458 } # EU<br>       UNION<br>       { ?country wdt:P17 wd:Q145 } # UK<br>       UNION<br>       { ?country wdt:P17 wd:Q39 } # Switzerland<br>     } <br>    } AS %personsDeadByCovid<br> <br>WHERE {<br>      INCLUDE %personsDeadByCovid.<br>      BIND( year(?death_date) - year(?birth_date) -  if(month(?death_date)&lt;month(?birth_date) ||  (month(?death_date)=month(?birth_date) &amp;&amp;  day(?death_date)&lt;day(?birth_date)),1,0) as ?age )                 <br>      SERVICE wikibase:label { <br>         bd:serviceParam wikibase:language \"[AUTO_LANGUAGE],en\".      <br>         ?person rdfs:label ?personLabel.<br>         ?country rdfs:label ?countryLabel.<br>         ?occ rdfs:label ?occLabel <br>       }   <br>     }                                                  <br> GROUP BY ?personLabel ?age<br> ORDER BY ?countryOfCitizenship ?age <\/pre>\n\n\n\n<p><strong>Version 2.0<\/strong><\/p>\n\n\n\n<p>Later on I noticed two things. <\/p>\n\n\n\n<p>First, it would have been nice to have a link to the Wikipedia page of the person, if there, in some of the major European languages &#8211; or my local ones, Finnish and Swedish.<\/p>\n\n\n\n<p>Second, the statistics query included duplicate records and thus gave incorrect counts. The enhanced versions are <a href=\"https:\/\/github.com\/tts\/Varia\/blob\/main\/covidd.sparql\">here <\/a>and <a href=\"https:\/\/github.com\/tts\/Varia\/blob\/main\/covidstatcorrect.sparql\">here<\/a>. To run the queries with these, click <a href=\"https:\/\/query.wikidata.org\/#SELECT%20%28SAMPLE%28%3FcountryLabel%29%20AS%20%3FcountryOfCitizenship%29%20%28SAMPLE%28%3Farticle%29%20AS%20%3Fwikipedia%29%20%3FpersonLabel%20%28SAMPLE%28%3Fage%29%20AS%20%3FageInDeath%29%20%28SAMPLE%28%3FoccLabel%29%20AS%20%3Foccupation%29%0A%20%20WITH%20%7B%0A%20%20%20%20SELECT%20DISTINCT%20%3Fcountry%20%3Farticle%20%3Fperson%20%3Fbirth_date%20%3Fdeath_date%20%3Focc%20WHERE%20%7B%0A%20%20%20%20%20%20%3Fperson%20wdt%3AP31%20wd%3AQ5%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP569%2Fpsv%3AP569%20%3Fbirth_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP570%2Fpsv%3AP570%20%3Fdeath_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP509%20wd%3AQ84263196%20%3B%20%23%20death%20cause%20is%20COVID-19%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP27%20%3Fcountry%20.%0A%20%20%20%20%20%20OPTIONAL%20%7B%20%3Fperson%20wdt%3AP106%20%3Focc.%20%23%20occupation%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Farticle%20schema%3Aabout%20%3Fperson%20.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%3Farticle%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fen.wikipedia.org%2F%3E%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%3Farticle%20schema%3AisPartOf%20%3Chttps%3A%2F%2Ffi.wikipedia.org%2F%3E%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%3Farticle%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fsv.wikipedia.org%2F%3E%20%7D%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%3Farticle%20schema%3AisPartOf%20%3Chttps%3A%2F%2Ffr.wikipedia.org%2F%3E%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%3Farticle%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fde.wikipedia.org%2F%3E%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%3Farticle%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fit.wikipedia.org%2F%3E%20%7D.%7D%0A%20%20%20%20%20%20%3Fbirth_date_node%20wikibase%3AtimeValue%20%3Fbirth_date%20.%0A%20%20%20%20%20%20%3Fdeath_date_node%20wikibase%3AtimeValue%20%3Fdeath_date%20.%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP361%20wd%3AQ52062%20%7D%20%23%20Nordic%20countries%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP463%20wd%3AQ458%20%7D%20%23%20EU%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ145%20%7D%20%23%20UK%0A%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ39%20%7D%20%23%20Switzerland%0A%20%20%20%20%7D%20%0A%20%20%20%7D%20AS%20%25personsDeadByCovid%0A%0A%20%20%20WHERE%20%7B%0A%20%20%20%20%20INCLUDE%20%25personsDeadByCovid.%0A%20%20%20%20%20BIND%28%20year%28%3Fdeath_date%29%20-%20year%28%3Fbirth_date%29%20-%20if%28month%28%3Fdeath_date%29%3Cmonth%28%3Fbirth_date%29%20%7C%7C%20%28month%28%3Fdeath_date%29%3Dmonth%28%3Fbirth_date%29%20%26%26%20day%28%3Fdeath_date%29%3Cday%28%3Fbirth_date%29%29%2C1%2C0%29%20as%20%3Fage%20%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20%0A%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%3Fperson%20rdfs%3Alabel%20%3FpersonLabel.%0A%20%20%20%20%20%20%20%3Fcountry%20rdfs%3Alabel%20%3FcountryLabel.%0A%20%20%20%20%20%20%20%3Focc%20rdfs%3Alabel%20%3FoccLabel%20%0A%20%20%20%20%20%20%7D%20%20%20%0A%20%20%20%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0AGROUP%20BY%20%3FpersonLabel%0AORDER%20BY%20%3FcountryOfCitizenship%20%3FageInDeath%0A\">this <\/a>or <a href=\"https:\/\/query.wikidata.org\/#SELECT%20%3FcountryOfCitizenship%20%28COUNT%28%3FpersonLabel%29%20AS%20%3FdeathsInCovid%29%20%28MAX%28%3FageInDeath%29%20AS%20%3Foldest%29%20%28MIN%28%3FageInDeath%29%20AS%20%3Fyoungest%29%20WHERE%20%7B%20%0A%20%20SELECT%20%28SAMPLE%28%3FcountryLabel%29%20AS%20%3FcountryOfCitizenship%29%20%3FpersonLabel%20%28SAMPLE%28%3Fage%29%20AS%20%3FageInDeath%29%20WHERE%20%7B%0A%20%20%20%20%20%20SELECT%20DISTINCT%20%3FcountryLabel%20%3FpersonLabel%20%3Fbirth_date%20%3Fdeath_date%20%3Fage%20WHERE%20%7B%0A%20%20%20%20%20%20%20%20%3Fperson%20wdt%3AP31%20wd%3AQ5%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP569%2Fpsv%3AP569%20%3Fbirth_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20p%3AP570%2Fpsv%3AP570%20%3Fdeath_date_node%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP509%20wd%3AQ84263196%20%3B%20%23%20death%20cause%20is%20COVID-19%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP27%20%3Fcountry%20.%0A%20%20%20%20%20%20%20%20%3Fbirth_date_node%20wikibase%3AtimeValue%20%3Fbirth_date%20.%0A%20%20%20%20%20%20%20%20%3Fdeath_date_node%20wikibase%3AtimeValue%20%3Fdeath_date%20.%0A%20%20%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP361%20wd%3AQ52062%20%7D%20%23%20Nordic%20countries%0A%20%20%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP463%20wd%3AQ458%20%7D%20%23%20EU%0A%20%20%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ145%20%7D%20%23%20UK%0A%20%20%20%20%20%20%20%20UNION%0A%20%20%20%20%20%20%20%20%7B%20%3Fcountry%20wdt%3AP17%20wd%3AQ39%20%7D%20%23%20Switzerland%0A%20%20%20%20%20%20%20BIND%28%20year%28%3Fdeath_date%29%20-%20year%28%3Fbirth_date%29%20-%20if%28month%28%3Fdeath_date%29%3Cmonth%28%3Fbirth_date%29%20%7C%7C%20%28month%28%3Fdeath_date%29%3Dmonth%28%3Fbirth_date%29%20%26%26%20day%28%3Fdeath_date%29%3Cday%28%3Fbirth_date%29%29%2C1%2C0%29%20as%20%3Fage%20%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20%0A%20%20%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%3Fperson%20rdfs%3Alabel%20%3FpersonLabel.%0A%20%20%20%20%20%20%20%20%20%3Fcountry%20rdfs%3Alabel%20%3FcountryLabel.%0A%20%20%20%20%20%20%20%20%7D%20%23%20end%20of%20SERVICE%20%20%0A%20%20%20%20%20%20%7D%20%23%20end%20of%20inner%20subquery%0A%20%20%20%20%7D%20%23%20end%20of%20outer%20subquery%20%0A%20%20%20%20GROUP%20BY%20%3FpersonLabel%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%7D%0A%20GROUP%20BY%20%3FcountryOfCitizenship%0A%20ORDER%20BY%20%3FcountryOfCitizenship%0A\">that<\/a>. (Oh the joy of naming links!)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>COVID-19 has come to stay with us, but we can still take a deep breath today and look back at what has happened so far. On an individual level, quite a lot of us didn&#8217;t survive. How many of these people can we found in Wikidata? What do we know about them? Let&#8217;s start closest &hellip; <a href=\"https:\/\/tuijasonkkila.fi\/?p=943\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Wikidata and COVID-19<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149],"tags":[15,145],"class_list":["post-943","post","type-post","status-publish","format-standard","hentry","category-diverse-coding","tag-sparql","tag-wikidata"],"_links":{"self":[{"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/posts\/943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=943"}],"version-history":[{"count":5,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/posts\/943\/revisions"}],"predecessor-version":[{"id":949,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=\/wp\/v2\/posts\/943\/revisions\/949"}],"wp:attachment":[{"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tuijasonkkila.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}