query-e268f1e975c36f2921f87ce134cd7394
04:02, 31 July 2020 (UTC)) talk (Dipsacus fullonum -- on Wikidata:(P18)image statements on Commons, probably due to their lag in updates, but I tested it on (P6305)Wikimedia VRTS ticket number , thank you that is exactly what I was looking for. The query does not seem to work at the moment for Dipsacus fullonum
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT distinct ?file ?value{
?file p:P18 ?statement1.
?file p:P18 ?statement2.
?statement1 ps:P18 ?value .
?statement2 ps:P18 ?value .
FILTER(?statement1 != ?statement2)
}
limit 50
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?file"):::projected
v1("?statement1")
v2("?statement2")
v4("?value"):::projected
f0[["?statement1 != ?statement2"]]
f0 --> v1
f0 --> v2
v3 --"p:P18"--> v1
v3 --"p:P18"--> v2
v1 --"p:statement/P18"--> v4
v2 --"p:statement/P18"--> v4