query-7a8524eaffc16ec36f78429404a2f409
Russian branch
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 ?branch ?okved1 ?okvd2 ?branchLabel where {
{ ?branch wdt:P3246 ?okvd2 . }
union { ?branch wdt:P3243 ?okved1 . }
service wikibase:label { bd:serviceParam wikibase:language "da,en" . }
}
order by ?code
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?branch"):::projected
v1("?code")
v3("?okvd2"):::projected
v4("?okved1"):::projected
c4(["bd:serviceParam"]):::iri
c6(["da,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P3243"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P3246"--> v3
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end