query-b93998741811118ba5d7d174353f8aac
Classement des pays par le nombre d'éléments (de sexe ou genre féminin) "archivés par" leurs institutions
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?country ?countryLabel (COUNT(?item) AS ?total) ?pop
WHERE
{
?item wdt:P485 ?institution;
wdt:P21 wd:Q6581072.
?institution wdt:P17 ?country.
OPTIONAL {?country wdt:P1082 ?pop.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
GROUP BY ?country ?countryLabel ?pop
ORDER BY DESC (?total)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?country"):::projected
v3("?institution")
v2("?item"):::projected
v5("?pop"):::projected
v6("?total")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal
c3(["wd:Q6581072"]):::iri
v2 --"wdt:P485"--> v3
v2 --"wdt:P21"--> c3
v3 --"wdt:P17"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1082".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v6