query-9d934146f58e9738d8ba64362c8cb66c
Most prolific actors
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?works
?cast_member
?cast_memberLabel
(CONCAT("#actor/", SUBSTR(STR(?cast_member), 32)) AS ?cast_memberUrl)
?cast_memberDescription
WHERE {
{
SELECT
(COUNT(*) AS ?works)
?cast_member
WHERE {
[] wdt:P161 ?cast_member .
}
GROUP BY ?cast_member
ORDER BY DESC(?works)
LIMIT 100
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?works)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?cast_member"):::projected
v3("?cast_memberUrl")
v3("?works"):::projected
a1((" "))
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
a1 --"wdt:P161"--> v2
bind1[/"count(*)"/]
bind1 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
bind2[/"concat('#actor/',substring(str(?cast_member),'32^^xsd:integer'))"/]
v2 --o bind2
bind2 --as--o v3