query-ed9a77427ad6a4199576fb0fc3c9843e
Women born in the UK
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 DISTINCT ?p ?pLabel ?pDescription WHERE {
?p wdt:P31 wd:Q5;
wdt:P21 wd:Q6581072;
{?p wdt:P19 wd:Q145} # place of birth: UK
UNION {?p wdt:P19 ?place.
{ ?place wdt:P131?/wdt:P17 wd:Q145 } # places whose country is the UK
UNION
{ ?place wdt:P131*/wdt:P17?/wdt:P31 wd:Q3336843 } # places whose country is a constituent of the UK
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
} ORDER BY ?pLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?p"):::projected
v1("?pLabel"):::projected
v3("?place")
a1((" "))
a2((" "))
a3((" "))
c4(["wd:Q6581072"]):::iri
c9(["wd:Q3336843"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
c11(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c6(["wd:Q145"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P21"--> c4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P19"--> v3
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P131"--> a2
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
a2 --"wdt:P17"--> a3
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
end
union2r <== or ==> union2l
end
a3 --"wdt:P31"--> c9
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P131"--> a1
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
end
union3r <== or ==> union3l
end
a1 --"wdt:P17"--> c6
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P19"--> c6
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end