query-89d6d663e9daa1ddc0f9c129e4450c52

rq turtle/ttl

title Different parts of speech in Catalan lexemes Select ?cat ?catLabel ?cnt ?lems where { {SELECT ?cat (count(*) as ?cnt) (GROUP_CONCAT(DISTINCT ?lem; SEPARATOR=", ") AS ?lems) WHERE { ?l http://purl.org/dc/terms/language wd:Q7026. ?l wikibase:lexicalCategory ?cat. ?l wikibase:lemma ?lem. } group by ?cat}

SERVICE wikibase:label { bd:serviceParam wikibase:language "ca". } } ORDER BY DESC(?cnt)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title Different parts of speech in Catalan lexemes
Select ?cat ?catLabel ?cnt ?lems where {
{SELECT ?cat (count(*) as ?cnt) (GROUP_CONCAT(DISTINCT ?lem; SEPARATOR=", ") AS ?lems) WHERE {
  ?l <http://purl.org/dc/terms/language> wd:Q7026.
  ?l wikibase:lexicalCategory ?cat.
  ?l wikibase:lemma ?lem.
} group by ?cat}

  SERVICE wikibase:label { bd:serviceParam wikibase:language "ca". }
}
ORDER BY DESC(?cnt)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?cat"):::projected v5("?cnt"):::projected v2("?l") v4("?lem") v5("?lems"):::projected c6(["bd:serviceParam"]):::iri c2(["wd:Q7026"]):::iri c8(["ca"]):::literal v2 --http://purl.org/dc/terms/language--> c2 v2 --"wikibase:lexicalCategory"--> v3 v2 --"wikibase:lemma"--> v4 bind2[/"count(*)"/] bind2 --as--o v5 bind3[/"?lem"/] v4 --o bind3 bind3 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end