query-56a89adbc9c407deadd3b22431afb6f3
Number of women in Wikidata without a Wikipedia articleHi, I am trying to find out the number of women in Wikidata who do not have a Wikipedia article. My first attempt looks like this:
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/>
SELECT (COUNT(*) AS ?count) WHERE {
?item wdt:P21 wd:Q6581072.
?item wdt:P31 wd:Q5.
MINUS {
?wen schema:about ?item .
?wen schema:isPartOf/wikibase:wikiGroup "wikipedia" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count")
v1("?item")
v2("?wen")
a1((" "))
c4(["wd:Q5"]):::iri
c2(["wd:Q6581072"]):::iri
c8(["wikipedia"]):::literal
v1 --"wdt:P21"--> c2
v1 --"wdt:P31"--> c4
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> a1
a1 --"wikibase:wikiGroup"--> c8
end
bind2[/"count(*)"/]
bind2 --as--o v3