query-0f5b3055c26577917dbd65bcc26e262a
Odia film @ Wikidata SELECT ?item ?wikis ?statements ?itemLabel ?year ?originaltitle ?directorLabel ?composerLabel WHERE{ ?item wdt:P31 wd:Q11424 . ?item wdt:P364 wd:Q33810 . ?item wikibase:statements ?statements . #count statements OPTIONAL { ?item wikibase:sitelinks ?wikis. } #count sitelinks OPTIONAL { ?item wdt:P577 ?date . BIND(YEAR(?date) as ?year) } OPTIONAL { ?item wdt:P1476 ?originaltitle } OPTIONAL { ?item wdt:P57 ?director } OPTIONAL { ?item wdt:P86 ?composer } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?year)
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#>
# Odia film @ Wikidata
SELECT
?item ?wikis ?statements ?itemLabel ?year ?originaltitle ?directorLabel ?composerLabel
WHERE{
?item wdt:P31 wd:Q11424 .
?item wdt:P364 wd:Q33810 .
?item wikibase:statements ?statements . #count statements
OPTIONAL { ?item wikibase:sitelinks ?wikis. } #count sitelinks
OPTIONAL { ?item wdt:P577 ?date . BIND(YEAR(?date) as ?year) }
OPTIONAL { ?item wdt:P1476 ?originaltitle }
OPTIONAL { ?item wdt:P57 ?director }
OPTIONAL { ?item wdt:P86 ?composer }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?year)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?composer")
v5("?date")
v7("?director")
v2("?item"):::projected
v6("?originaltitle"):::projected
v3("?statements"):::projected
v4("?wikis"):::projected
v6("?year"):::projected
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q11424"]):::iri
c4(["wd:Q33810"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P364"--> c4
v2 --"wikibase:statements"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wikibase:sitelinks".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P577".-> v5
bind0[/"year-from-dateTime(?date)"/]
v5 --o bind0
bind0 --as--o v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1476".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P57".-> v7
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P86".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end