query-cf938faf3a6fcab0503fa1a1599ed4ae
Multiple awardsLooking for EGOT. . More problems with instance and subclass...
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#>
SELECT ?actor ?actorLabel
{
# human instead of fictional
?actor wdt:P31 wd:Q5 .
# occupation is an actor
?actor wdt:P106/wdt:P279* wd:Q33999 .
# Best Actor Oscar
# best actor is an instance of Academy Awards Q19020!
?actor wdt:P166 wd:Q103916 .
# Golden Globe
?actor wdt:P166/wdt:P279* wd:Q1011547 .
# Tony Award
# best actor is an instance of Tony Awards Q191874 rather than a subclass!
# ?actor wdt:P166/wdt:P279* wd:Q191874 .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
} ORDER BY ?actorLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?actor"):::projected
v1("?actorLabel"):::projected
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c8(["wd:Q1011547"]):::iri
c2(["wd:Q5"]):::iri
c7(["wd:Q103916"]):::iri
c12(["en"]):::literal
c5(["wd:Q33999"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c5
v2 --"wdt:P166"--> c7
v2 --"wdt:P166"--> a2
a2 --"wdt:P279"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end