query-93b116f6cf2d6a7c2dc6a3b6ea20142f
Les grandes communes de France avec l'institution qui conservent leurs archives.
SELECT DISTINCT ?item ?itemLabel ?pop ?archives ?archivesLabel
WHERE
{
?item wdt:P31/wdt:P279* wd:Q484170;
wdt:P1376 ?capital;
wdt:P1082 ?pop.
FILTER (?pop > 50000)
OPTIONAL {?item wdt:P485 ?archives.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
ORDER BY DESC (?pop)
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#>
#Les grandes communes de France avec l'institution qui conservent leurs archives.
SELECT DISTINCT ?item ?itemLabel ?pop ?archives ?archivesLabel
WHERE
{
?item wdt:P31/wdt:P279* wd:Q484170;
wdt:P1376 ?capital;
wdt:P1082 ?pop.
FILTER (?pop > 50000)
OPTIONAL {?item wdt:P485 ?archives.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
ORDER BY DESC (?pop)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?archives"):::projected
v3("?capital")
v2("?item"):::projected
v1("?pop"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal
c4(["wd:Q484170"]):::iri
f0[["?pop > '50000^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v2 --"wdt:P1376"--> v3
v2 --"wdt:P1082"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P485".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end