query-f4087ed1861a7127ca8ca92d56805cba
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?located_in_the_administrative_territorial_entityLabel WHERE {
{ ?item wdt:P1216 "1004239". }
UNION { ?item wdt:P1216 "1004240". }
UNION { ?item wdt:P1216 "1004241". }
UNION { ?item wdt:P1216 "1004399". }
UNION { ?item wdt:P1216 "1004464". }
UNION { ?item wdt:P1216 "1004486". }
UNION { ?item wdt:P1216 "1007278". }
UNION { ?item wdt:P1216 "1007298". }
UNION { ?item wdt:P1216 "1007771". }
UNION { ?item wdt:P1216 "1007772". }
UNION { ?item wdt:P1216 "1007773". }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
OPTIONAL { ?item wdt:P131 ?located_in_the_administrative_territorial_entity. }
}
LIMIT 10000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?located_in_the_administrative_territorial_entity")
c2(["1004239"]):::literal
c5(["1004399"]):::literal
c16(["en,en"]):::literal
c9(["1007298"]):::literal
c10(["1007771"]):::literal
c14(["bd:serviceParam"]):::iri
c11(["1007772"]):::literal
c8(["1007278"]):::literal
c12(["1007773"]):::literal
c6(["1004464"]):::literal
c7(["1004486"]):::literal
c4(["1004241"]):::literal
c3(["1004240"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
subgraph union5[" Union "]
subgraph union5l[" "]
style union5l fill:#abf,stroke-dasharray: 3 3;
subgraph union6[" Union "]
subgraph union6l[" "]
style union6l fill:#abf,stroke-dasharray: 3 3;
subgraph union7[" Union "]
subgraph union7l[" "]
style union7l fill:#abf,stroke-dasharray: 3 3;
subgraph union8[" Union "]
subgraph union8l[" "]
style union8l fill:#abf,stroke-dasharray: 3 3;
subgraph union9[" Union "]
subgraph union9l[" "]
style union9l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c12
end
subgraph union9r[" "]
style union9r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c11
end
union9r <== or ==> union9l
end
end
subgraph union8r[" "]
style union8r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c10
end
union8r <== or ==> union8l
end
end
subgraph union7r[" "]
style union7r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c9
end
union7r <== or ==> union7l
end
end
subgraph union6r[" "]
style union6r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c8
end
union6r <== or ==> union6l
end
end
subgraph union5r[" "]
style union5r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c7
end
union5r <== or ==> union5l
end
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c6
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c5
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c4
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1216"--> c2
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v2
end