query-8ab0f9e61472474febc80e7c475654f7
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item {
?item p:P856 ?p856stm .
OPTIONAL { ?p856stm pq:P407 ?p407 }
FILTER(!BOUND(?p407))
?item wdt:P31 wd:Q5 .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?p407")
v3("?p856stm")
c4(["wd:Q5"]):::iri
f0[["not bound(?p407)"]]
f0 --> v1
v2 --"p:P856"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P407".-> v1
end
v2 --"p:direct/P31"--> c4