query-53f5c3f69fcf4713ed2e6a87be63c8dc
Propertiesfirst line (P1922)ISO 639-1 code (P218)original language of film or TV show (P364)
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 (COUNT(?thing) AS ?count) ?langLabel ?langlineLabel WHERE {
?thing wdt:P1922 ?line.
BIND(lang(?line) AS ?langlinecode)
?langline wdt:P218 ?langlinecode
OPTIONAL { ?thing wdt:P364 ?lang }
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en,de,fr,ru"}
} GROUP BY ?langLabel ?langlineLabel
ORDER BY ?langLabel DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?count")
v7("?lang")
v1("?langLabel"):::projected
v6("?langline")
v5("?langlinecode")
v4("?line")
v3("?thing"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,mul,en,de,fr,ru"]):::literal
v3 --"wdt:P1922"--> v4
bind0[/"?line"/]
v4 --o bind0
bind0 --as--o v5
v6 --"wdt:P218"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P364".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"count(?thing)"/]
v3 --o bind2
bind2 --as--o v8