query-f1f3d9229b82031abd7bc52fa2fc48fa

rq turtle/ttl

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 50

Use at

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 50

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