query-3c1cbc84247aa1a5d89a6d845459d9fe
P486 identifiers starting with D, grouped by occurrence number on items SELECT ?item ?itemLabel (COUNT(?mesh) as ?count) WHERE {?item wdt:P486 ?mesh. FILTER(strstarts(?mesh, 'D'))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ORDER BY DESC(?count)
LIMIT 125
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#P486 identifiers starting with D, grouped by occurrence number on items
SELECT ?item ?itemLabel (COUNT(?mesh) as ?count)
WHERE {?item wdt:P486 ?mesh.
FILTER(strstarts(?mesh, 'D'))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?count)
LIMIT 125
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?item"):::projected
v2("?mesh"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["starts-with(?mesh,'D')"]]
f0 --> v2
v3 --"wdt:P486"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind2[/"count(?mesh)"/]
v2 --o bind2
bind2 --as--o v4