query-1ec5a549c32c1ce8a8ae237300d11383
Propertiesinstance of (P31)named after (P138)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#>
SELECT DISTINCT ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q16521.
?item wdt:P138 ?entity.
?entity (wdt:P31/wdt:P279*) wd:Q7397.
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;
v2("?entity")
v1("?item"):::projected
a1((" "))
c5(["wd:Q7397"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q16521"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P138"--> v2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end