query-2b2e649de969c2231d51b61807c4f604
Propertiesauthor (P50)original language of film or TV show (P364)language of work or name (P407)instance of (P31)
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 ?item ?itemLabel (COUNT(DISTINCT ?work) as ?workcount)
WHERE
{
?work wdt:P50 ?item .
?work wdt:P364 | wdt:P407 wd:Q12107 .
?item wdt:P31 wd:Q5 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "br,fr,en" }
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?workcount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v2("?work"):::projected
v4("?workcount")
c8(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c3(["wd:Q12107"]):::iri
c10(["br,fr,en"]):::literal
v2 --"wdt:P50"--> v3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P407"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P364"--> c3
end
union0r <== or ==> union0l
end
v3 --"wdt:P31"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?work)"/]
v2 --o bind1
bind1 --as--o v4