query-d7218e052077e18bdcc600aaccba9983

rq turtle/ttl

Films with Cineplex ID

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 psv: <http://www.wikidata.org/prop/statement/value/>
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 ?cineplex ?film ?filmLabel (GROUP_CONCAT(?country) AS ?countries) (MIN(?release) AS ?release) (MIN(?grelease) AS ?grelease) WHERE {
  ?film wdt:P3077 ?cineplex .
  OPTIONAL{?film wdt:P495 ?country} .
  OPTIONAL{?film p:P577 ?release_statement . ?release_statement psv:P577/wikibase:timePrecision "11"^^xsd:integer . ?release_statement v:P577 ?release} .
  OPTIONAL{?film p:P577 ?grelease_statement . ?grelease_statement psv:P577/wikibase:timePrecision "11"^^xsd:integer . ?grelease_statement v:P577 ?grelease . ?grelease_statement pq:P291 wd:Q183} .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
GROUP BY ?cineplex ?film ?filmLabel
ORDER BY ?filmLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?cineplex"):::projected v9("?countries") v4("?country"):::projected v2("?film"):::projected v1("?filmLabel"):::projected v10("?grelease"):::projected v7("?grelease_statement") v10("?release"):::projected v5("?release_statement") a1((" ")) a2((" ")) c6(["11^^xsd:integer"]):::literal c13(["de"]):::literal c11(["bd:serviceParam"]):::iri c9(["wd:Q183"]):::iri v2 --"p:direct/P3077"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P495".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:P577".-> v5 v5 --"p:statement/value/P577"--> a1 a1 --"wikibase:timePrecision"--> c6 v5 --"p:statement/P577"--> v10 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:P577".-> v7 v7 --"p:statement/value/P577"--> a2 a2 --"wikibase:timePrecision"--> c6 v7 --"p:statement/P577"--> v10 v7 --"p:qualifier/P291"--> c9 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end bind3[/"?country"/] v4 --o bind3 bind3 --as--o v9 bind4[/"min(?release)"/] v10 --o bind4 bind4 --as--o v10 bind5[/"min(?grelease)"/] v10 --o bind5 bind5 --as--o v10