query-492fdb1a9cfb3b7b9982641d935beb74

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?outbreak ?outbreakLabel ?countryLabel
WHERE {?outbreak p:P31 ?x.
  ?x ps:P31 ?y.
  ?y wdt:P279* wd:Q3241045. # ?outbreak is an instance of (P31) disease outbreak (Q3241045) or its subclass (P279)
  ?x pq:P642 wd:Q84263196;  # of (P642) COVID-19 (Q84263196)
     pq:P518 ?country.      # applies to part (P518): ?country
  ?country wdt:P31 wd:Q6256 # ?country is an instance of (P31) country (Q6256)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".} }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?country") v1("?outbreak"):::projected v2("?x") v3("?y") c6(["wd:Q84263196"]):::iri c4(["wd:Q3241045"]):::iri c11(["bd:serviceParam"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal c9(["wd:Q6256"]):::iri v1 --"p:P31"--> v2 v2 --"p:statement/P31"--> v3 v3 --"p:direct/P279"--> c4 v2 --"p:qualifier/P642"--> c6 v2 --"p:qualifier/P518"--> v4 v4 --"p:direct/P31"--> c9 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end