query-3ff7dd017a2bb403d29a7615d2d2d28e

rq turtle/ttl

Propertiesoriginal language of film or TV show (P364)language of work or name (P407)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?propLabel ?p
WHERE {
  ?s wdt:P364 ?originalLanguage .
  ?s wdt:P407 ?variantWorkLanguage .
  OPTIONAL {
    ?s ?p ?o .
  }
  ?prop wikibase:directClaim ?p .
  FILTER (?originalLanguage != ?variantWorkLanguage)
  FILTER (STRSTARTS(STR(?p), STR(wdt:)))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?propLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?o") v3("?originalLanguage") v2("?p"):::projected v7("?prop") v1("?propLabel"):::projected v5("?s") v4("?variantWorkLanguage") c6(["bd:serviceParam"]):::iri c8(["en"]):::literal f0[["starts-with(str(?p),str('wdt:'))"]] f0 --> v2 f1[["?originalLanguage != ?variantWorkLanguage"]] f1 --> v3 f1 --> v4 v5 --"wdt:P364"--> v3 v5 --"wdt:P407"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -->v2--> v6 end v7 -."wikibase:directClaim".-> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end