query-dc7d8e436234db1bab405fa4bb86b26c
German women with an article in English Wikipedia but not in German Wikipedia
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?birthdate ?deathdate
WHERE
{ ?item wdt:P31 wd:Q5 ;
wdt:P27 wd:Q183 ;
wdt:P21 wd:Q6581072 ;
wdt:P569 ?birthdate .
OPTIONAL { ?item wdt:P570 ?deathdate }
FILTER EXISTS { ?wen schema:about ?item ; schema:inLanguage "en" }
FILTER NOT EXISTS { ?wde schema:about ?item ; schema:inLanguage "de" }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en" }
} ORDER BY ?birthdate
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?birthdate"):::projected
v5("?deathdate"):::projected
v3("?item"):::projected
v2("?wde")
v4("?wen")
c3(["de"]):::literal
c4(["en"]):::literal
c10(["wd:Q6581072"]):::iri
c14(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c8(["wd:Q183"]):::iri
c16(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:inLanguage"--> e0c3
e0v2("?item"):::projected
e0v1("?wde"):::projected
e0c3(["de"]):::literal
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
f0 --> c2
f0 --> c3
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> c3
f1[[" "]]
subgraph f1e1["Exists Clause"]
e1v1 --"schema:about"--> e1v2
e1v1 --"schema:inLanguage"--> e1c3
e1v2("?item"):::projected
e1v1("?wen"):::projected
e1c3(["en"]):::literal
end
f1--EXISTS--> f1e1
f1 --> v4
f1 --> c1
f1 --> v3
f1 --> c2
f1 --> c4
v4 --"schema:about"--> v3
v4 --"schema:inLanguage"--> c4
v3 --"wdt:P31"--> c6
v3 --"wdt:P27"--> c8
v3 --"wdt:P21"--> c10
v3 --"wdt:P569"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P570".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end