query-6bc68e695055a6bb6c2cd52cc860cd2d
http://www.pcbs.gov.ps/Downloads/book578.pdfhttp://www.pcbs.gov.ps/Downloads/book508.pdf
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#>
SELECT DISTINCT ?human_settlement ?human_settlementLabel ?instance_of ?instance_ofLabel ?country ?countryLabel ?population ?located_in_the_administrative_territorial_entity ?located_in_the_administrative_territorial_entityLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?human_settlement (wdt:P31/wdt:P279*) wd:Q486972.
{ ?human_settlement wdt:P17 wd:Q407199. }
UNION
{ ?human_settlement wdt:P17 wd:Q219060. }
OPTIONAL { ?human_settlement wdt:P31 ?instance_of. }
OPTIONAL { ?human_settlement wdt:P17 ?country. }
OPTIONAL { ?human_settlement wdt:P1082 ?population. }
OPTIONAL { ?human_settlement wdt:P131 ?located_in_the_administrative_territorial_entity. }
}
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?country"):::projected
v1("?human_settlement"):::projected
v2("?instance_of"):::projected
v5("?located_in_the_administrative_territorial_entity"):::projected
v4("?population"):::projected
a1((" "))
c7(["wd:Q486972"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c10(["wd:Q219060"]):::iri
c9(["wd:Q407199"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c7
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P17"--> c10
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P17"--> c9
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P17".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1082".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v5
end