query-fe4a34e50c2f33a2244630ac423910bb
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?country ?countryLabel ?inception ?count WHERE {
{
SELECT ?country ?inception (COUNT(DISTINCT ?person) AS ?count) WHERE {
?person wdt:P27 ?country .
?person wdt:P570 ?dod .
?country wdt:P571 ?inception .
FILTER (?dod < ?inception) .
} GROUP BY ?country ?inception
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count"):::projected
v5("?country"):::projected
v2("?dod")
v3("?inception"):::projected
v4("?person")
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?dod < ?inception"]]
f0 --> v2
f0 --> v3
v4 --"wdt:P27"--> v5
v4 --"wdt:P570"--> v2
v5 --"wdt:P571"--> v3
bind2[/"count(?person)"/]
v4 --o bind2
bind2 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end