query-044a0781c50d179b57eb8dc186949595
Requêtes imbriquéesminute : 00:36:00
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#>
#defaultView:Map
SELECT ?dpt ?form ?layer WHERE {
BIND(FLOOR(?compte / 100 ) AS ?layer)
{
SELECT ?dpt ?form (COUNT(?commune) AS ?compte) WHERE {
?dpt wdt:P31 wd:Q6465;
wdt:P3896 ?form.
?commune wdt:P131 ?dpt;
wdt:P31 wd:Q484170.
MINUS { ?commune wdt:P576 [] }
}
GROUP BY ?dpt ?form ?layer
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?commune")
v5("?compte")
v2("?dpt"):::projected
v3("?form"):::projected
v1("?layer"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q6465"]):::iri
c5(["wd:Q484170"]):::iri
bind0[/"numeric-floor(?compte / '100^^xsd:integer')"/]
v5 --o bind0
bind0 --as--o v1
v2 --"wdt:P31"--> c2
v2 --"wdt:P3896"--> v3
v4 --"wdt:P131"--> v2
v4 --"wdt:P31"--> c5
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v4 --"wdt:P576"--> a1
end
bind3[/"count(?commune)"/]
v4 --o bind3
bind3 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end