query-2e9fea45eb9cc4f762dae601865544e2
Indigenous artists from what is known as Canada SELECT DISTINCT ?person ?personLabel WHERE { VALUES ?artist {wd:Q2500638 wd:Q483501} ?person (wdt:P106/(wdt:P279)) ?artist. hint:Prior hint:gearing "forward". # artist ?person (wdt:P172/(wdt:P361)/(wdt:P279|wdt:P31*)) wd:Q863284. # ethnic group is a subclass or part of Indigenous People in Canada SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". } }
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#>
# Indigenous artists from what is known as Canada
SELECT DISTINCT ?person ?personLabel
WHERE
{
VALUES ?artist {wd:Q2500638 wd:Q483501}
?person (wdt:P106/(wdt:P279*)) ?artist. # artist
?person (wdt:P172*/(wdt:P361*)/(wdt:P279*|wdt:P31*)) wd:Q863284. # ethnic group is a subclass or part of Indigenous People in Canada
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?artist")
v2("?person"):::projected
a1((" "))
a2((" "))
a3((" "))
c8(["bd:serviceParam"]):::iri
c5(["wd:Q863284"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en,fr"]):::literal
bind0[/VALUES ?artist/]
bind0-->v1
bind00(["wd:Q2500638"])
bind00 --> bind0
bind01(["wd:Q483501"])
bind01 --> bind0
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> v1
v2 --"wdt:P172"--> a2
a2 --"wdt:P361"--> a3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a3 --"wdt:P31"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
a3 --"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