query-68c936a0ddc749b0fd2c0f405430e84e
SPARQL query
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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 DISTINCT ?name ?wikidata WHERE {
?wikidata p:P39 ?mem .
?mem ps:P39 wd:Q33129158 .
FILTER NOT EXISTS { ?mem pq:P582 [] } # no end date
SERVICE wikibase:label {
bd:serviceParam wikibase:language "et,en".
?wikidata rdfs:label ?name .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?mem")
v3("?name"):::projected
v2("?wikidata"):::projected
a1((" "))
c8(["et,en"]):::literal
c6(["bd:serviceParam"]):::iri
c4(["wd:Q33129158"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P582"--> e0a1
e0v1("?mem"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"p:qualifier/P582"--> a1
v2 --"p:P39"--> v1
v1 --"p:statement/P39"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
v2 --"rdfs:label"--> v3
end