query-2cee3522ad9e6760aafdcbd76173115d

rq turtle/ttl

Personnalités mortes de la Covid-19 SELECT ?paysLabel (COUNT(?item) AS ?count) WHERE{ ?item wdt:P509 wd:Q84263196 ; wdt:P27 ?pays ; wikibase:sitelinks ?sitelinks . ?item wdt:P570 ?time0 . FILTER((?time0 >= "2020-01-01T00:00:00Z"^^xsd:dateTime) && (?time0 <= "2023-01-01T00:00:00Z"^^xsd:dateTime)) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr". } minus{ ?pays wdt:P576 [].} FILTER (?sitelinks >= 1) . } GROUP BY ?paysLabel ORDER BY DESC(?count)

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Personnalités mortes de la Covid-19
SELECT ?paysLabel (COUNT(?item) AS ?count)
WHERE{
  ?item wdt:P509 wd:Q84263196 ; wdt:P27 ?pays ; wikibase:sitelinks ?sitelinks .
  ?item wdt:P570 ?time0 .
  FILTER((?time0 >= "2020-01-01T00:00:00Z"^^xsd:dateTime) && (?time0 <= "2023-01-01T00:00:00Z"^^xsd:dateTime))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr". }
  minus{ ?pays wdt:P576 [].}
  FILTER (?sitelinks >= 1) .
}
GROUP BY ?paysLabel
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?count") v4("?item"):::projected v5("?pays") v2("?sitelinks") v3("?time0") a1((" ")) c5(["wd:Q84263196"]):::iri c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,fr"]):::literal f0[["?sitelinks >= '1^^xsd:integer'"]] f0 --> v2 f1[["?time0 >= '2020-01-01T00:00:00Z^^xsd:dateTime'?time0 <= '2023-01-01T00:00:00Z^^xsd:dateTime'"]] f1 --> v3 v4 --"wdt:P509"--> c5 v4 --"wdt:P27"--> v5 v4 --"wikibase:sitelinks"--> v2 v4 --"wdt:P570"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v5 --"wdt:P576"--> a1 end bind4[/"count(?item)"/] v4 --o bind4 bind4 --as--o v6