query-61cb227df88ae10488b23a209d281774

rq turtle/ttl

James Bond

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 ?title ?filmLabel ?actorLabel (GROUP_CONCAT(DISTINCT(?directorName);separator=", ") AS ?director) (SAMPLE(?runtime) AS ?runtime) ?imdb (SAMPLE(?mojo) AS ?mojo) WHERE {
    ?film p:P179 ?series . ?series v:P179 wd:Q2484680 . ?series pq:P1545 ?ordinal .
    ?film p:P161 ?bond . ?bond pq:P453 wd:Q2009573 . ?bond v:P161 ?actor .
    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 .
    ?film wdt:P1476 ?title .
    OPTIONAL{?film wdt:P2047 ?runtime}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
GROUP BY ?film ?title ?filmLabel ?imdb ?ordinal ?actor ?actorLabel
ORDER BY ASC(xsd:integer(?ordinal))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?actor") v5("?bond") v7("?dir") v14("?director") v2("?directorName"):::projected v3("?film"):::projected v8("?imdb"):::projected v15("?mojo"):::projected v1("?ordinal"):::projected v10("?publication"):::projected v15("?runtime"):::projected v4("?series") v11("?title"):::projected v13("?year") c20(["de"]):::literal c8(["wd:Q2009573"]):::iri c4(["wd:Q2484680"]):::iri c18(["bd:serviceParam"]):::iri v3 --"p:P179"--> v4 v4 --"p:statement/P179"--> c4 v4 --"p:qualifier/P1545"--> v1 v3 --"p:P161"--> v5 v5 --"p:qualifier/P453"--> c8 v5 --"p:statement/P161"--> v6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P57".-> v7 v7 --"rdfs:label"--> v2 end v3 --"p:direct/P345"--> v8 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P1237".-> v15 end v3 --"p:direct/P577"--> v10 v3 --"p:direct/P1476"--> v11 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P2047".-> v15 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c18 --"wikibase:language"--> c20 end bind4[/"min(year-from-dateTime(?publication))"/] v10 --o bind4 bind4 --as--o v13 bind5[/"?directorName"/] v2 --o bind5 bind5 --as--o v14 bind6[/"sample(?runtime)"/] v15 --o bind6 bind6 --as--o v15 bind7[/"sample(?mojo)"/] v15 --o bind7 bind7 --as--o v15