query-261f9d63dbf9b120433d826f8bd5aeb4
Disney Animation Studios feature films
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?ordinal ((MIN(YEAR(?publication))) AS ?year) ?film (SAMPLE(?title) AS ?title) ?filmLabel (GROUP_CONCAT(DISTINCT(?directorName);separator=", ") AS ?directors) (SAMPLE(?runtime) AS ?runtime) ?imdb (SAMPLE(?mojo) AS ?mojo) WHERE {
?film p:P179 ?series . ?series v:P179 wd:Q56070713 . ?series pq:P1545 ?ordinal .
OPTIONAL{?film wdt:P57 ?dir . ?dir rdfs:label ?directorName . FILTER(lang(?directorName) = "en")} .
?film wdt:P345 ?imdb .
OPTIONAL{?film wdt:P1237 ?mojo} .
?film wdt:P577 ?publication .
OPTIONAL{?film wdt:P1476 ?title} .
OPTIONAL{?film wdt:P2047 ?runtime}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
GROUP BY ?film ?filmLabel ?imdb ?ordinal
ORDER BY ASC(xsd:integer(?ordinal))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?dir")
v2("?directorName"):::projected
v12("?directors")
v3("?film"):::projected
v6("?imdb"):::projected
v13("?mojo"):::projected
v1("?ordinal"):::projected
v8("?publication"):::projected
v13("?runtime"):::projected
v4("?series")
v12("?title"):::projected
v11("?year")
c16(["de"]):::literal
c4(["wd:Q56070713"]):::iri
c14(["bd:serviceParam"]):::iri
v3 --"p:P179"--> v4
v4 --"p:statement/P179"--> c4
v4 --"p:qualifier/P1545"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P57".-> v5
v5 --"rdfs:label"--> v2
end
v3 --"p:direct/P345"--> v6
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P1237".-> v13
end
v3 --"p:direct/P577"--> v8
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P1476".-> v12
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P2047".-> v13
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end
bind5[/"min(year-from-dateTime(?publication))"/]
v8 --o bind5
bind5 --as--o v11
bind6[/"sample(?title)"/]
v12 --o bind6
bind6 --as--o v12
bind7[/"?directorName"/]
v2 --o bind7
bind7 --as--o v12
bind8[/"sample(?runtime)"/]
v13 --o bind8
bind8 --as--o v13
bind9[/"sample(?mojo)"/]
v13 --o bind9
bind9 --as--o v13