query-ac2dcc02782fd91b1633ef38ae994de7
Bouzinac
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT (xsd:integer(?number) AS ?no) ?film ?filmLabel ?narrative_location ?narrative_locationLabel ?image ?coordinates
WHERE
{
?film p:P179 ?series .
?series ps:P179 wd:Q2484680 .
OPTIONAL { ?series pq:P1545 ?number . }
OPTIONAL
{
?film wdt:P840 ?narrative_location .
OPTIONAL { ?narrative_location wdt:P18 ?image . }
OPTIONAL { ?narrative_location wdt:P625 ?coordinates . }
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?no
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?coordinates"):::projected
v2("?film"):::projected
v6("?image"):::projected
v5("?narrative_location"):::projected
v8("?no")
v4("?number"):::projected
v3("?series")
c3(["wd:Q2484680"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"p:P179"--> v3
v3 --"p:statement/P179"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P1545".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P840".-> v5
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:direct/P18".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:direct/P625".-> v7
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind0[/"http://www.w3.org/2001/XMLSchema#integer(?number)"/]
v4 --o bind0
bind0 --as--o v8