query-8420f398460f857f82a25ee3d7a0b0bc
TODO
Use at
- https://query.wikidata.org/sparql
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 ?item ?whsId ?st WHERE {
?item wdt:P757 ?whsId.
OPTIONAL {
?item p:P1435 [ ps:P1435 wd:Q9259; pq:P580 ?st ] .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?st"):::projected
v2("?whsId"):::projected
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c3(["wd:Q9259"]):::iri
v1 --"p:direct/P757"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a1 -."p:statement/P1435".-> c3
a1 --"p:qualifier/P580"--> v3
v1 --"p:P1435"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end