query-6ab6f20dfbb8669f54df049b8b3ddc70
title:List of Lithuanian elderships (parishes) SELECT ?item ?itemLabel ?munic ?municLabel ?area ?pop WHERE { ?item wdt:P31 wd:Q2298305. OPTIONAL { ?item wdt:P131 ?munic. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } OPTIONAL { ?item wdt:P2046 ?area. } OPTIONAL { ?item wdt:P1082 ?pop. } }
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:List of Lithuanian elderships (parishes)
SELECT ?item ?itemLabel ?munic ?municLabel ?area ?pop WHERE {
?item wdt:P31 wd:Q2298305.
OPTIONAL { ?item wdt:P131 ?munic. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
OPTIONAL { ?item wdt:P2046 ?area. }
OPTIONAL { ?item wdt:P1082 ?pop. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?area"):::projected
v1("?item"):::projected
v2("?munic"):::projected
v4("?pop"):::projected
c2(["wd:Q2298305"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2046".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1082".-> v4
end