query-3973dd973120ec43216bc10b9e5d68fc
pm20 subject category items with more than one "instance of" statements
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 ?item ?itemLabel
where {
?item wdt:P31 wd:Q92707903 ;
wdt:P31 ?otherClass .
filter(?otherClass != wd:Q92707903)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?otherClass")
c1(["wd:Q92707903"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
f0[["?otherClass != 'wd:Q92707903'"]]
f0 --> v1
v2 --"wdt:P31"--> c1
v2 --"wdt:P31"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end