query-a63cb29af8a38a81f9980e6a8766173a
Shisma
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?qid ?P6623 WHERE {
?qid p:P6623 ?s6623.
?s6623 ps:P6623 ?P6623 .
?s6623 a wikibase:BestRank .
filter not exists {
?s6623 ?q ?v .
?plop wikibase:qualifier ?q .
}
filter not exists {
?s6623 ?r ?v .
?plop wikibase:reference ?r .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?P6623"):::projected
v4("?plop")
v5("?q")
v6("?qid"):::projected
v2("?r")
v1("?s6623")
v3("?v")
c6(["wikibase:BestRank"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 -->e0v2--> e0v3
e0v4 --"wikibase:reference"--> e0v2
e0v4("?plop"):::projected
e0v2("?r"):::projected
e0v1("?s6623"):::projected
e0v3("?v"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> v4
f0 --> c1
v1 -->v2--> v3
v4 --"wikibase:reference"--> v2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 -->e1v2--> e1v3
e1v4 --"wikibase:qualifier"--> e1v2
e1v4("?plop"):::projected
e1v2("?q"):::projected
e1v1("?s6623"):::projected
e1v3("?v"):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> v5
f1 --> v3
f1 --> v4
f1 --> c2
v1 -->v5--> v3
v4 --"wikibase:qualifier"--> v5
v6 --"p:P6623"--> v1
v1 --"p:statement/P6623"--> v7
v1 --"a"--> c6