query-68f09c760159ca86e65d6a845e6d120f
2 zobacz
Use at
- https://query.wikidata.org/sparql
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?country ?countryLabel WHERE {
?country wdt:P37 wd:Q809 . # find Polish official language
{ ?country wdt:P31/wdt:P279* wd:Q7275 } UNION { ?country wdt:P31/wdt:P279* wd:Q484652 } # in state or international organization
SERVICE wikibase:label {
bd:serviceParam wikibase:language "pl" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?country"):::projected
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c6(["wd:Q484652"]):::iri
c5(["wd:Q7275"]):::iri
c10(["pl"]):::literal
c2(["wd:Q809"]):::iri
v1 --"wdt:P37"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end