query: SELECT ?item ?itemLabel ?dates ?caseNo ?deathNo ?countryLabel WHERE { 
    ?item wdt:P361 wd:Q83741704 .
    OPTIONAL { ?item wdt:P17 ?country . }
    ?item p:P1603 ?cases .
    ?cases ps:P1603 ?caseNo ;
           pq:P585 ?dates .
    OPTIONAL{ ?item p:P1120 ?deaths .
    ?deaths pq:P585 ?dates ;
            ps:P1120 ?deathNo .
    }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
  }
  ORDER BY ?country ?dates
  