query-7c0abba9cec9df38288aaf104fcdf831
Randomly expected and unexpected resultsThe following query should throw 13 results:
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE {
?item wdt:P195 wd:Q812285 .
OPTIONAL { ?item p:P217 ?invnostatement .
?invnostatement ps:P217 ?invno . }
FILTER( !bound(?invno) )
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr,it,es,pt,ca,la" . }
}
#somestring
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?invno")
v3("?invnostatement")
v2("?item"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en,de,fr,it,es,pt,ca,la"]):::literal
c2(["wd:Q812285"]):::iri
f0[["not bound(?invno)"]]
f0 --> v1
v2 --"p:direct/P195"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P217".-> v3
v3 --"p:statement/P217"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end