query-e155c87867f8e5cdc8aedf44011ddec9
Duplicated MP identifier on asteroids
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT * WHERE {
{
SELECT ?id (COUNT(?obj) AS ?count) (GROUP_CONCAT(?obj; SEPARATOR = " , ") AS ?items) WHERE { ?obj wdt:P5736 ?id. }
GROUP BY ?id
}
FILTER(?count > 1)
}ORDER BY ?id
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count"):::projected
v1("?id"):::projected
v4("?items"):::projected
v3("?obj")
f0[["?count > '1^^xsd:integer'"]]
f0 --> v4
v3 --"wdt:P5736"--> v1
bind3[/"count(?obj)"/]
v3 --o bind3
bind3 --as--o v4
bind4[/"?obj"/]
v3 --o bind4
bind4 --as--o v4