query-43740dda28ee8b2d7dc530ef2528d41e
wd:P27411 as resultLook at this query:
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 ?release) (MIN(?grelease) AS ?grelease) 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(?release)=1996 && year(?grelease)=1997 && day(?grelease)=30)
Query found at
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service/Wikidata_Query_Help
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cineplex"):::projected
v8("?countries")
v7("?country"):::projected
v3("?film"):::projected
v9("?grelease"):::projected
v6("?grelease_statement")
v9("?release"):::projected
v5("?release_statement")
a1((" "))
a2((" "))
c8(["11^^xsd:integer"]):::literal
c16(["de"]):::literal
c14(["bd:serviceParam"]):::iri
c11(["wd:Q183"]):::iri
f0[["year-from-dateTime(?release) = '1996^^xsd:integer'year-from-dateTime(?grelease) = '1997^^xsd:integer'day-from-dateTime(?grelease) = '30^^xsd:integer'"]]
f0 --> v9
f0 --> v9
v3 --"p:direct/P3077"--> v4
v3 --"p:P577"--> v5
v5 --"p:statement/value/P577"--> a1
a1 --"wikibase:timePrecision"--> c8
v5 --"p:statement/P577"--> v9
v3 --"p:P577"--> v6
v6 --"p:statement/value/P577"--> a2
a2 --"wikibase:timePrecision"--> c8
v6 --"p:statement/P577"--> v9
v6 --"p:qualifier/P291"--> c11
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P495".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end
bind4[/"?country"/]
v7 --o bind4
bind4 --as--o v8
bind5[/"min(?release)"/]
v9 --o bind5
bind5 --as--o v9
bind6[/"min(?grelease)"/]
v9 --o bind6
bind6 --as--o v9