query-5787651bc042d6565b130c7bbb12258a
Listing some villages with their labels, and the items+labels of their superior administrative units (items containing a specific description) SELECT ?item ?itemLabel ?raion ?raionLabel WHERE { ?item wdt:P31 wd:Q532 . ?item wdt:P131 ?raion . ?item wdt:P17 wd:Q217 . ?item schema:description "village in Moldova"@en. SERVICE wikibase:label { bd:serviceParam wikibase:language "ro". } }
LIMIT 50
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Listing some villages with their labels, and the items+labels of their superior administrative units (items containing a specific description)
SELECT ?item ?itemLabel ?raion ?raionLabel
WHERE
{
?item wdt:P31 wd:Q532 .
?item wdt:P131 ?raion .
?item wdt:P17 wd:Q217 .
?item schema:description "village in Moldova"@en.
SERVICE wikibase:label { bd:serviceParam wikibase:language "ro". }
}
#LIMIT 50
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?raion"):::projected
c7([svillage in Moldova^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
c2(["wd:Q532"]):::iri
c9(["bd:serviceParam"]):::iri
c5(["wd:Q217"]):::iri
c11(["ro"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P131"--> v2
v1 --"wdt:P17"--> c5
v1 --"schema:description"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end