query-5de7bec4c66d4a5f066e87730f504869

rq turtle/ttl

Group minor resultsHi! Excuse me for the streak of questions, I hope this will be the last for a while. So, through this query

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?type (COUNT(DISTINCT ?item) AS ?count) WHERE {
  ?item wdt:P8034 ?id .
  ?item wikibase:identifiers ?ids .
  BIND((?ids) AS ?type)
}
GROUP BY ?type
ORDER BY ?type

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count") v3("?id") v4("?ids") v2("?item"):::projected v5("?type"):::projected v2 --"wdt:P8034"--> v3 v2 --"wikibase:identifiers"--> v4 bind0[/"?ids"/] v4 --o bind0 bind0 --as--o v5 bind2[/"count(?item)"/] v2 --o bind2 bind2 --as--o v5