query-c78a2d26d040010a6c9f5394691f9749

rq turtle/ttl

Indigenous artists from what is known as Canada SELECT DISTINCT ?P361 ?P361Label ?P279 ?P279Label ?P31 ?P31Label WHERE { ?eg wdt:P361/wdt:P279|wdt:P31* wd:Q863284. # ethnic group is a subclass or part of Indigenous People in Canada ?eg wdt:P361 ?P361 . ?eg wdt:P279 ?P279 . ?eg wdt:P31 ?P31 . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". } }

Use at

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 ?P361 ?P361Label ?P279 ?P279Label ?P31 ?P31Label 
WHERE 
{
  ?eg wdt:P361*/wdt:P279*|wdt:P31* wd:Q863284. # ethnic group is a subclass or part of Indigenous People in Canada
  ?eg wdt:P361 ?P361 .
  ?eg wdt:P279 ?P279 .
  ?eg wdt:P31 ?P31 .
  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; v3("?P279"):::projected v4("?P31"):::projected v2("?P361"):::projected v1("?eg") a1((" ")) c6(["bd:serviceParam"]):::iri c3(["wd:Q863284"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en,fr"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P361"--> a1 a1 --"wdt:P279"--> c3 end union0r <== or ==> union0l end v1 --"wdt:P361"--> v2 v1 --"wdt:P279"--> v3 v1 --"wdt:P31"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end