query-756d23f1bcf46552177561d48e4f7762

rq turtle/ttl

Classifier usage in Malay

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX dct: <http://purl.org/dc/terms/>
#defaultView:BubbleChart
SELECT ?classifier (group_concat(?lemma; separator="/") as ?lemmas) ?number_of_nouns WHERE {
  {
    SELECT ?classifier (COUNT(DISTINCT ?noun) AS ?number_of_nouns) WHERE {
      ?noun dct:language wd:Q9237;
        wdt:P5978 ?classifier.
    }
    GROUP BY ?classifier
  }
  ?classifier wikibase:lemma ?lemma.
} group by ?classifier ?number_of_nouns
ORDER BY DESC (?number_of_nouns)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?classifier"):::projected v4("?lemma"):::projected v5("?lemmas") v2("?noun") v4("?number_of_nouns"):::projected c2(["wd:Q9237"]):::iri v2 --"dct:language"--> c2 v2 --"wdt:P5978"--> v3 bind1[/"count(?noun)"/] v2 --o bind1 bind1 --as--o v4 v3 --"wikibase:lemma"--> v4 bind3[/"?lemma"/] v4 --o bind3 bind3 --as--o v5