query-5ceab6962f685f8b28aacde1ad057e18
Duplicated pages
Use at
- https://query.wikidata.org/sparql
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/>
SELECT ?item ?taxonName WHERE {
VALUES ?taxon {wd:Q16521 wd:Q310890 wd:Q23038290} . # taxon, monotypic taxon, fossil taxon
?item p:P31/ps:P31 wd:Q17362920 . # duplicated page
?item p:P31/pq:P642 ?duplicateItem . # von
#?item p:P31/pq:P460 ?duplicateItem . # said to be the same as
?duplicateItem p:P31/ps:P31 ?taxon .
?duplicateItem p:P225/ps:P225 ?taxonName .
}
ORDER BY ASC(?taxonName)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?duplicateItem")
v3("?item"):::projected
v2("?taxon")
v1("?taxonName"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c3(["wd:Q17362920"]):::iri
bind0[/VALUES ?taxon/]
bind0-->v2
bind00(["wd:Q16521"])
bind00 --> bind0
bind01(["wd:Q310890"])
bind01 --> bind0
bind02(["wd:Q23038290"])
bind02 --> bind0
v3 --"p:P31"--> a1
a1 --"p:statement/P31"--> c3
v3 --"p:P31"--> a2
a2 --"p:qualifier/P642"--> v4
v4 --"p:P31"--> a3
a3 --"p:statement/P31"--> v2
v4 --"p:P225"--> a4
a4 --"p:statement/P225"--> v1