query-1d82380d520ec30972660ebf537fea3b
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?p1435 ?p1435Label
WHERE
{
?item wdt:P131 wd:Q1534714 .
?item p:P1435 ?statement .
FILTER NOT EXISTS { ?statement ps:P1435 wd:Q31027091 }
?statement ps:P1435 ?p1435.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fi". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?p1435"):::projected
v1("?statement")
c2(["wd:Q31027091"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,fi"]):::literal
c4(["wd:Q1534714"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:statement/P1435"--> e0c2
e0v1("?statement"):::projected
e0c2(["wd:Q31027091"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"p:statement/P1435"--> c2
v2 --"p:direct/P131"--> c4
v2 --"p:P1435"--> v1
v1 --"p:statement/P1435"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end