query-94c83ab0869ae7ad527abd7065c60d58
PropertiesINSEE department code (P2586) place of birth (P19) date of birth (P569) contains administrative territorial entity (P150) PropertiesINSEE department code (P2586)place of birth (P19)date of birth (P569)contains the administrative territorial entity (P150)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?birthplace ?birthplaceLabel ?departement ?departementLabel (COUNT(*) as ?count) WHERE {
?departement wdt:P2586 "84";
rdfs:label ?departementLabel.
FILTER((LANG(?departementLabel)) = "fr")
?item wdt:P19 ?birthplace;
wdt:P569 ?birthdate;
rdfs:label ?itemLabel.
FILTER((LANG(?itemLabel)) = "fr")
?departement wdt:P150* ?birthplace.
?birthplace rdfs:label ?birthplaceLabel.
FILTER((LANG(?birthplaceLabel)) = "fr")
?sitelink schema:about ?item;
schema:isPartOf <https://fr.wikipedia.org/>.
}
GROUP BY ?birthplace ?birthplaceLabel ?departement ?departementLabel
ORDER BY DESC(?count)
Query found at
- https://www.wikidata.org/w/index.php?title=Topic:Wps7qokf58ewsy0i&topic_showPostId=wpuag15h7ajcq1k1#flow-post-wpuag15h7ajcq1k1
- https://www.wikidata.org/wiki/Topic:Wps7qokf58ewsy0i
- https://www.wikidata.org/wiki/User:PAC2/D%C3%A9partements
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?birthdate")
v7("?birthplace"):::projected
v2("?birthplaceLabel"):::projected
v10("?count")
v5("?departement"):::projected
v4("?departementLabel"):::projected
v6("?item")
v3("?itemLabel")
v9("?sitelink")
c10([https://fr.wikipedia.org/]):::iri
c3(["84"]):::literal
f0[["?birthplaceLabel = 'fr'"]]
f0 --> v2
f1[["?itemLabel = 'fr'"]]
f1 --> v3
f2[["?departementLabel = 'fr'"]]
f2 --> v4
v5 --"wdt:P2586"--> c3
v5 --"rdfs:label"--> v4
v6 --"wdt:P19"--> v7
v6 --"wdt:P569"--> v8
v6 --"rdfs:label"--> v3
v5 --"wdt:P150"--> v7
v7 --"rdfs:label"--> v2
v9 --"schema:about"--> v6
v9 --"schema:isPartOf"--> c10
bind4[/"count(*)"/]
bind4 --as--o v10