query-9d08b25db82678c619f07f72574fdd95
Most awarded actor
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
?awards
?actor
?actorLabel
(CONCAT("#actor/", SUBSTR(STR(?actor), 32)) AS ?actorUrl)
?actorDescription
WHERE {
{
SELECT
(COUNT(*) AS ?awards)
?actor
WHERE {
?actor wdt:P166 [] .
FILTER EXISTS { ?actor wdt:P106 wd:Q33999 }
}
GROUP BY ?actor
ORDER BY DESC(?awards)
LIMIT 200
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?awards)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?actor"):::projected
v3("?actorUrl")
v3("?awards"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q33999"]):::iri
f0[[" "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P106"--> e0c2
e0v1("?actor"):::projected
e0c2(["wd:Q33999"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> c2
v2 --"wdt:P106"--> c2
v2 --"wdt:P166"--> a1
bind2[/"count(*)"/]
bind2 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind3[/"concat('#actor/',substring(str(?actor),'32^^xsd:integer'))"/]
v2 --o bind3
bind3 --as--o v3