query-a14efa1d49f92ed3d581621888fde26f

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?citizenship ?citizenshipLabel (COUNT(*) AS ?count) WHERE {
  ?sitelink schema:about ?item;
    schema:isPartOf <https://fr.wikiquote.org/>;
    schema:name ?string.
  ?item wdt:P31  wd:Q5 ;
        wdt:P27 ?citizenship.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
GROUP BY ?citizenship ?citizenshipLabel 
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?citizenship"):::projected v6("?count") v3("?item") v2("?sitelink") v4("?string") c3([https://fr.wikiquote.org/]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;"]):::literal c6(["wd:Q5"]):::iri v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c3 v2 --"schema:name"--> v4 v3 --"wdt:P31"--> c6 v3 --"wdt:P27"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end bind1[/"count(*)"/] bind1 --as--o v6