query-98a1321d3651ca3ff24c256fcdc02448

rq turtle/ttl

Noms des partis politiques, par ordre de popularité

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Noms des partis politiques les plus communs
#defaultView:BubbleChart
SELECT ?itemLabel (COUNT(*) AS ?count)
WHERE
{
  ?pid wdt:P31 wd:Q7278.
  ?pid rdfs:label ?itemLabel.
  FILTER(LANG(?itemLabel) = "fr") # with French description

 # ?pid rdfs:label ?firstname

}
GROUP BY ?itemLabel
ORDER BY DESC(?count) ?itemLabel
LIMIT 20

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v2("?itemLabel"):::projected v3("?pid") c3(["wd:Q7278"]):::iri f0[["?itemLabel = 'fr'"]] f0 --> v2 v3 --"wdt:P31"--> c3 v3 --"rdfs:label"--> v2 bind2[/"count(*)"/] bind2 --as--o v4