query-dd75bd381ccc763bb3ec0bdd8b3af4d9
GeneralThanks to Simon Villeneuve Checking for duplicate citations.
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item
WHERE
{
VALUES ?work { wd:Q59238938 wd:Q96484383 wd:Q63994232 }
?item p:P2860 ?cites_statement1 .
?item p:P2860 ?cites_statement2 .
FILTER (?cites_statement1 != ?cites_statement2)
?cites_statement1 ps:P2860 ?work .
?cites_statement2 ps:P2860 ?work .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?cites_statement1")
v2("?cites_statement2")
v4("?item"):::projected
v3("?work")
f0[["?cites_statement1 != ?cites_statement2"]]
f0 --> v1
f0 --> v2
bind1[/VALUES ?work/]
bind1-->v3
bind10(["wd:Q59238938"])
bind10 --> bind1
bind11(["wd:Q96484383"])
bind11 --> bind1
bind12(["wd:Q63994232"])
bind12 --> bind1
v4 --"p:P2860"--> v1
v4 --"p:P2860"--> v2
v1 --"p:statement/P2860"--> v3
v2 --"p:statement/P2860"--> v3