query-7f537c98ccd0640e0a797e336df685de
Title : Caseria, villa, llugar and aldea of Asturia
select distinct ?item ?itemLabel ?type ?typeLabel { ?item wdt:P31 ?type . values ?type { wd:Q5756064 # (casería); "rural settlement; single entity of population of Asturias" wd:Q3957 # (villa); "settlement that is smaller than a city but bigger than a large village (or a large borough in some areas)"; wd:Q13526752 # (llugar); "Spanish single entity of population, smaller than a villa and larger than an aldea" wd:Q5084 # (aldea) "small settlement in a rural area" }
?item wdt:P131*/wdt:P31 wd:Q55102916 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
#Title : Caseria, villa, llugar and aldea of Asturia
select distinct ?item ?itemLabel ?type ?typeLabel {
?item wdt:P31 ?type .
values ?type {
wd:Q5756064 # (casería); "rural settlement; single entity of population of Asturias"
wd:Q3957 # (villa); "settlement that is smaller than a city but bigger than a large village (or a large borough in some areas)";
wd:Q13526752 # (llugar); "Spanish single entity of population, smaller than a villa and larger than an aldea"
wd:Q5084 # (aldea) "small settlement in a rural area"
}
?item wdt:P131*/wdt:P31 wd:Q55102916 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?type"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c3(["wd:Q55102916"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> v3
bind0[/VALUES ?type/]
bind0-->v3
bind00(["wd:Q5756064"])
bind00 --> bind0
bind01(["wd:Q3957"])
bind01 --> bind0
bind02(["wd:Q13526752"])
bind02 --> bind0
bind03(["wd:Q5084"])
bind03 --> bind0
v1 --"wdt:P131"--> a1
a1 --"wdt:P31"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end