query-3e75f57575b108a43347b5191eb55e24
title: manga items with the same IDQ11381433 SELECT DISTINCT ?manga1 ?manga2 WHERE { ?manga1 wdt:P31/wdt:P279* wd:Q8274. ?prop wdt:P31 wd:Q101083593. ?prop wikibase:directClaim ?propClaim. ?manga1 ?propClaim ?id. ?manga2 ?propClaim ?id. FILTER (?manga1 != ?manga2). FILTER NOT EXISTS {?manga1 ?x ?manga2} }
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/>
#title: manga items with the same IDQ11381433
SELECT DISTINCT ?manga1 ?manga2 WHERE {
?manga1 wdt:P31/wdt:P279* wd:Q8274.
?prop wdt:P31 wd:Q101083593.
?prop wikibase:directClaim ?propClaim.
?manga1 ?propClaim ?id.
?manga2 ?propClaim ?id.
FILTER (?manga1 != ?manga2).
FILTER NOT EXISTS {?manga1 ?x ?manga2}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?id")
v1("?manga1"):::projected
v3("?manga2"):::projected
v4("?prop")
v5("?propClaim")
v2("?x")
a1((" "))
c4(["wd:Q101083593"]):::iri
c3(["wd:Q8274"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 -->e0v2--> e0v3
e0v1("?manga1"):::projected
e0v3("?manga2"):::projected
e0v2("?x"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> v3
v1 -->v2--> v3
f1[["?manga1 != ?manga2"]]
f1 --> v1
f1 --> v3
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v4 --"wdt:P31"--> c4
v4 --"wikibase:directClaim"--> v5
v1 -->v5--> v6
v3 -->v5--> v6