query-58b179f8eb9068c18b9fa59adfd069ff

rq turtle/ttl

DreamWorks Animation feature films

Use at

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) (SAMPLE(?imdb) AS ?imdb) (SAMPLE(?mojo) AS ?mojo) WHERE {
    ?film p:P179 ?series . ?series v:P179 wd:Q26196748 . ?series pq:P1545 ?ordinal .
    OPTIONAL{?film wdt:P57 ?dir . ?dir rdfs:label ?directorName .  FILTER(lang(?directorName) = "en")} .
    OPTIONAL{?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 ?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 v13("?imdb"):::projected v13("?mojo"):::projected v1("?ordinal"):::projected v8("?publication"):::projected v13("?runtime"):::projected v4("?series") v12("?title"):::projected v11("?year") c16(["de"]):::literal c14(["bd:serviceParam"]):::iri c4(["wd:Q26196748"]):::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 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P345".-> v13 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P1237".-> v13 end v3 --"p:direct/P577"--> v8 subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P1476".-> v12 end subgraph optional4["(optional)"] style optional4 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 bind6[/"min(year-from-dateTime(?publication))"/] v8 --o bind6 bind6 --as--o v11 bind7[/"sample(?title)"/] v12 --o bind7 bind7 --as--o v12 bind8[/"?directorName"/] v2 --o bind8 bind8 --as--o v12 bind9[/"sample(?runtime)"/] v13 --o bind9 bind9 --as--o v13 bind10[/"sample(?imdb)"/] v13 --o bind10 bind10 --as--o v13 bind11[/"sample(?mojo)"/] v13 --o bind11 bind11 --as--o v13