query-2865408696494d8a2a4e99e6a5f467a2
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pqv: <http://www.wikidata.org/prop/qualifier/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?geoEntity ?geoEntityLabel ?population ?date ?datePrecision ?dateValue ?rank WHERE {
values ?geoEntity {wd:Q671480}
?geoEntity p:P1082 ?populationStatement.
?populationStatement ps:P1082 ?population.
?populationStatement pqv:P585 ?date.
?date wikibase:timePrecision ?datePrecision. # precision of at least year
?date wikibase:timeValue ?dateValue.
?populationStatement wikibase:rank ?rank.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?date"):::projected
v5("?datePrecision"):::projected
v6("?dateValue"):::projected
v1("?geoEntity"):::projected
v3("?population"):::projected
v2("?populationStatement")
v7("?rank"):::projected
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
bind0[/VALUES ?geoEntity/]
bind0-->v1
bind00(["wd:Q671480"])
bind00 --> bind0
v1 --"p:P1082"--> v2
v2 --"p:statement/P1082"--> v3
v2 --"p:qualifier/value/P585"--> v4
v4 --"wikibase:timePrecision"--> v5
v4 --"wikibase:timeValue"--> v6
v2 --"wikibase:rank"--> v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end