query-7a6f3d2b819aa8dc28358c3edf5c951c
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?item ?itemLabel ?item2 ?item2Label where {
?item wdt:P1889 ?item2 .
filter not exists { ?item2 wdt:P1889 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr" }
}
limit 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?item2"):::projected
a1((" "))
c3(["bd:serviceParam"]):::iri
c5(["en,de,fr"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P1889"--> e0a1
e0v1("?item2"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P1889"--> a1
v2 --"wdt:P1889"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end