query-335f89fe30b0669f30a46067957b0c4b
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sexLabel ?country_of_citizenship ?country_of_citizenshipLabel WHERE {
?item wdt:P106 wd:Q169470;
wdt:P27 ?country_of_citizenship .
?country_of_citizenship wdt:P30 wd:Q15 .
OPTIONAL { ?item wdt:P21 ?sex } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,ar,fr" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?country_of_citizenship"):::projected
v1("?item"):::projected
v3("?sex")
c8(["bd:serviceParam"]):::iri
c2(["wd:Q169470"]):::iri
c10(["en,de,ar,fr"]):::literal
c5(["wd:Q15"]):::iri
v1 --"wdt:P106"--> c2
v1 --"wdt:P27"--> v2
v2 --"wdt:P30"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P21".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end