query-b83d3accede59dbbbfc4d81bdc784050
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 schema: <http://schema.org/>
SELECT DISTINCT ?item ?linkcount WHERE {
?item wdt:P1343 wd:Q105802405. # described by source Dictionary of Women Worldwide
VALUES ?occupation {wd:Q36180 wd:Q3303330 wd:Q2516866 wd:Q482980 }
?item wdt:P106/wdt:P279* ?occupation .
FILTER NOT EXISTS { # has no en.wikipedia sitelink
?wen schema:about ?item .
?wen schema:isPartOf <https://en.wikipedia.org/> .}
?item wdt:P21 wd:Q6581072 . # gender: female
?item wikibase:sitelinks ?linkcount . # count of sitelinks
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?linkcount"):::projected
v3("?occupation")
v1("?wen")
a1((" "))
c3([https://en.wikipedia.org/]):::iri
c9(["wd:Q6581072"]):::iri
c5(["wd:Q105802405"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v2("?item"):::projected
e0v1("?wen"):::projected
e0c3([https://en.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
v2 --"wdt:P1343"--> c5
bind1[/VALUES ?occupation/]
bind1-->v3
bind10(["wd:Q36180"])
bind10 --> bind1
bind11(["wd:Q3303330"])
bind11 --> bind1
bind12(["wd:Q2516866"])
bind12 --> bind1
bind13(["wd:Q482980"])
bind13 --> bind1
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> v3
v2 --"wdt:P21"--> c9
v2 --"wikibase:sitelinks"--> v4