query-ddade448bf408c4d07be0c7d3ecd7928
TODO for the taxa items(P2868)subject has role All the distinc values stored within
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?roleValue ?roleValueLabel ?count WHERE
{
{
SELECT ?roleValue (count(?item) as ?count) WHERE {
?item wdt:P2868 ?roleValue; wdt:P31 wd:Q16521 .
} group by ?roleValue } SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} order by desc(?count)
Query found at
- https://www.wikidata.org/wiki/User_talk:Rdmpage
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2021/05
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count"):::projected
v2("?item")
v3("?roleValue"):::projected
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
c3(["wd:Q16521"]):::iri
v2 --"wdt:P2868"--> v3
v2 --"wdt:P31"--> c3
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end