query-ca5c72646545cd4bd536e151944b41f7
Músicos
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct * where {
{
{ ?artist wdt:P31 wd:Q5 . } # human
union
{ ?artist wdt:P31 wd:Q2088357 . } # group
}
?artist wdt:P136 wd:Q14390274 . # tango
optional { ?artist rdfs:label ?artistLabel . filter(lang(?artistLabel) = "es") }
optional { ?artist wdt:P434 ?mbartist . }
optional { ?artist wdt:P4931 ?ttperson . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?artist"):::projected
v1("?artistLabel"):::projected
v3("?mbartist"):::projected
v4("?ttperson"):::projected
c3(["wd:Q5"]):::iri
c4(["wd:Q2088357"]):::iri
c6(["wd:Q14390274"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c3
end
union0r <== or ==> union0l
end
v2 --"wdt:P136"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P434".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P4931".-> v4
end