query-e1cffa721fb8f01c62e482aa8fd864b8
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
?item wdt:P4812 [].
?item p:P242 [pq:P2096 ?val ]. filter(lang(?val)="el")
filter not exists {?item p:P242 [pq:P2096 ?val2 ]. filter(lang(?val2)!="el")}
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
- https://www.wikidata.org/wiki/User:Xaris333/query
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2018/09
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?val")
v1("?val2")
a2((" "))
a3((" "))
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?val2 != 'el'"]]
e0f0 --> e0v1
e0a1 --"p:qualifier/P2096"--> e0v1
e0v2 --"p:P242"--> e0a1
e0v2("?item"):::projected
e0v1("?val2"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> a1
f0 --> c2
f0 --> v2
f0 --> c3
f1[["?val2 != 'el'"]]
f1 --> v1
a1 --"p:qualifier/P2096"--> v1
v2 --"p:P242"--> a1
f2[["?val = 'el'"]]
f2 --> v3
v2 --"p:direct/P4812"--> a2
a3 --"p:qualifier/P2096"--> v3
v2 --"p:P242"--> a3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end