query-6475df06c4c588abf091a1cc3e843339
TODO
Use at
- https://query.wikidata.org/sparql
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/>
SELECT (count(?item) as ?count) WHERE {
?item wdt:P170 wd:Q381238 .
?item wdt:P18 [] .
MINUS{ ?item wdt:P31 wd:Q3658341 .}
?item p:P528 [ pq:P972 wd:Q106425660; ps:P528 ?KDM] .
filter ( bound(?KDM) && ?KDM!="I 0000")
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?KDM")
v3("?count")
v2("?item"):::projected
a1((" "))
a2((" "))
c6(["wd:Q3658341"]):::iri
c3(["wd:Q381238"]):::iri
c8(["wd:Q106425660"]):::iri
f0[["bound(?KDM)?KDM != 'I 0000'"]]
f0 --> v1
v2 --"p:direct/P170"--> c3
v2 --"p:direct/P18"--> a1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P31"--> c6
end
a2 --"p:qualifier/P972"--> c8
a2 --"p:statement/P528"--> v1
v2 --"p:P528"--> a2
bind3[/"count(?item)"/]
v2 --o bind3
bind3 --as--o v3