query-f04637d65321f6992cb1dd4079703c7b
TODO
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 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(DISTINCT ?country) AS ?countries) (MIN(?release) AS ?releasez) (MIN(?grelease) AS ?greleasez) WHERE {
?film wdt:P3077 ?cineplex .
?film p:P577 ?release_statement . ?release_statement psv:P577/wikibase:timePrecision "11"^^xsd:integer . ?release_statement v:P577 ?release .
?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 .
OPTIONAL{?film wdt:P495 ?country} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
GROUP BY ?cineplex ?film ?filmLabel
HAVING(year(?greleasez)>=1949 && year(?greleasez)<=1999)
ORDER BY ?filmLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cineplex"):::projected
v10("?countries")
v9("?country"):::projected
v3("?film"):::projected
v1("?filmLabel"):::projected
v8("?grelease"):::projected
v7("?grelease_statement")
v12("?greleasez")
v6("?release"):::projected
v5("?release_statement")
v11("?releasez")
a1((" "))
a2((" "))
c7(["11^^xsd:integer"]):::literal
c15(["de"]):::literal
c13(["bd:serviceParam"]):::iri
c10(["wd:Q183"]):::iri
f0[["year-from-dateTime(?greleasez) >= '1949^^xsd:integer'year-from-dateTime(?greleasez) <= '1999^^xsd:integer'"]]
f0 --> v12
v3 --"p:direct/P3077"--> v4
v3 --"p:P577"--> v5
v5 --"p:statement/value/P577"--> a1
a1 --"wikibase:timePrecision"--> c7
v5 --"p:statement/P577"--> v6
v3 --"p:P577"--> v7
v7 --"p:statement/value/P577"--> a2
a2 --"wikibase:timePrecision"--> c7
v7 --"p:statement/P577"--> v8
v7 --"p:qualifier/P291"--> c10
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P495".-> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end
bind4[/"?country"/]
v9 --o bind4
bind4 --as--o v10
bind5[/"min(?release)"/]
v6 --o bind5
bind5 --as--o v11
bind6[/"min(?grelease)"/]
v8 --o bind6
bind6 --as--o v12