query-ec463ff7aa9e84e1adff342764c24f7b
can be rewritten 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 bd: <http://www.bigdata.com/rdf#>
SELECT ?woman ?womanLabel
WHERE
{
BIND(wdt:P31 AS ?instanceOf).
BIND(wd:Q5 AS ?human).
BIND(wdt:P21 AS ?sexOrGender).
BIND(wd:Q6581072 AS ?female).
BIND(wdt:P106 AS ?occupation).
BIND(wd:Q42603 AS ?priest).
?woman ?instanceOf ?human;
?sexOrGender ?female;
?occupation ?priest.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?female")
v2("?human")
v1("?instanceOf")
v5("?occupation")
v6("?priest")
v3("?sexOrGender")
v7("?woman"):::projected
c2(["bd:serviceParam"]):::iri
c4(["en"]):::literal
bind0[/"'wdt:P31'"/]
bind0 --as--o v1
bind1[/"'wd:Q5'"/]
bind1 --as--o v2
bind2[/"'wdt:P21'"/]
bind2 --as--o v3
bind3[/"'wd:Q6581072'"/]
bind3 --as--o v4
bind4[/"'wdt:P106'"/]
bind4 --as--o v5
bind5[/"'wd:Q42603'"/]
bind5 --as--o v6
v7 -->v1--> v2
v7 -->v3--> v4
v7 -->v5--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end