query-724f9c25cfc629581f6b7c6fa89798d8
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?population
WHERE
{
?item p:P1082 [ps:P1082 ?population]. #item has a population property & ps:P1082 provides the value
?item wdt:P31/wdt:P279* wd:Q486972. #item is a human settlement, or a subclass of a human settlement
filter (?population>1000) #population is greater than 1000
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} limit 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?population"):::projected
a1((" "))
a2((" "))
c6(["wd:Q486972"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?population > '1000^^xsd:integer'"]]
f0 --> v1
a1 --"p:statement/P1082"--> v1
v2 --"p:P1082"--> a1
v2 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end