query-4cf8d201a348c4ceeac8a9a115d1c590
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?holderclaims (COUNT(DISTINCT ?position) AS ?positions)
WHERE {
{
SELECT ?position (COUNT(DISTINCT ?ps) AS ?holderclaims) WHERE {
?position p:P1308 ?ps.
}
GROUP BY ?position
}.
}
GROUP BY ?holderclaims
ORDER BY DESC(?holderclaims)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?holderclaims"):::projected
v2("?position"):::projected
v4("?positions")
v3("?ps")
v2 --"p:P1308"--> v3
bind1[/"count(?ps)"/]
v3 --o bind1
bind1 --as--o v4
bind3[/"count(?position)"/]
v2 --o bind3
bind3 --as--o v4