query-a60904c37a9bedfbd61052e1b48e1f54
Propertiesmain subject (P921)instance of (P31)subclass of (P279)
Use at
- https://query.wikidata.org/sparql
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#>
#defaultView:Tree
SELECT DISTINCT ?related ?relatedLabel ?type ?typeLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?COVID_19 wdt:P921 wd:Q84263196.
?COVID_19 wdt:P921 ?related.
{?related wdt:P31 wd:Q12140.} UNION {?related wdt:P279 wd:Q179661.}
OPTIONAL{?related wdt:P31 ?type.}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?COVID_19")
v2("?related"):::projected
v3("?type"):::projected
c6(["wd:Q84263196"]):::iri
c2(["bd:serviceParam"]):::iri
c8(["wd:Q12140"]):::iri
c10(["wd:Q179661"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P921"--> c6
v1 --"wdt:P921"--> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P279"--> c10
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c8
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v3
end