query-3b627300ffaf6f9e407eb6100c57716d
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?v877 ?v993 ?v994 ?v995
WHERE {
?item p:P4952 ?statement.
?statement ps:P4952 wd:Q51139288.
filter not exists {?statement pq:P877 ?v877 .
?statement pq:P993 ?v993 .
?statement pq:P994 ?v994 .
?statement pq:P995 ?v995 .}
minus {?statement a wdno:P877 .} #deal with value is "no value"
minus {?statement a wdno:P993 .}
minus {?statement a wdno:P994 .}
minus {?statement a wdno:P995 .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 2000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?item"):::projected
v1("?statement")
v2("?v877"):::projected
v3("?v993"):::projected
v4("?v994"):::projected
v5("?v995"):::projected
c9(["p:novalue/P877"]):::iri
c12(["p:novalue/P995"]):::iri
c10(["p:novalue/P993"]):::iri
c11(["p:novalue/P994"]):::iri
c14(["bd:serviceParam"]):::iri
c7(["wd:Q51139288"]):::iri
c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P877"--> e0v2
e0v1 --"p:qualifier/P993"--> e0v3
e0v1 --"p:qualifier/P994"--> e0v4
e0v1 --"p:qualifier/P995"--> e0v5
e0v1("?statement"):::projected
e0v2("?v877"):::projected
e0v3("?v993"):::projected
e0v4("?v994"):::projected
e0v5("?v995"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> v3
f0 --> c3
f0 --> v4
f0 --> c4
f0 --> v5
v1 --"p:qualifier/P877"--> v2
v1 --"p:qualifier/P993"--> v3
v1 --"p:qualifier/P994"--> v4
v1 --"p:qualifier/P995"--> v5
v6 --"p:P4952"--> v1
v1 --"p:statement/P4952"--> c7
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"a"--> c9
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"a"--> c10
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v1 --"a"--> c11
end
subgraph minus4["MINUS"]
style minus4 stroke-width:6px,fill:pink,stroke:red;
v1 --"a"--> c12
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end