query-89973a57c24e2033f0fc770226750a1a

rq turtle/ttl

Jurassic Park film series

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 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 ?film ?ordinal ?title ?filmLabel (SAMPLE(?duration) AS ?duration) ((MIN(?pub)) AS ?publication) ?directorLabel ?imdb WHERE {
    ?film p:P179 ?series .
    ?series v:P179 wd:Q17862144.
    ?series pq:P1545 ?ordinal .
    ?film wdt:P1476 ?title .
    ?film wdt:P345 ?imdb .
    ?film wdt:P57 ?director
    OPTIONAL {?film wdt:P2047 ?duration}
    OPTIONAL {?film wdt:P577 ?pub}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
GROUP BY ?film ?title ?filmLabel ?imdb ?ordinal ?director ?directorLabel
ORDER BY ASC(xsd:integer(?ordinal))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?director") v9("?duration"):::projected v2("?film"):::projected v5("?imdb"):::projected v1("?ordinal"):::projected v8("?pub"):::projected v9("?publication") v3("?series") v4("?title"):::projected c3(["wd:Q17862144"]):::iri c13(["de"]):::literal c11(["bd:serviceParam"]):::iri v2 --"p:P179"--> v3 v3 --"p:statement/P179"--> c3 v3 --"p:qualifier/P1545"--> v1 v2 --"p:direct/P1476"--> v4 v2 --"p:direct/P345"--> v5 v2 --"p:direct/P57"--> v6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P2047".-> v9 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P577".-> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end bind2[/"sample(?duration)"/] v9 --o bind2 bind2 --as--o v9 bind3[/"min(?pub)"/] v8 --o bind3 bind3 --as--o v9