query-5c9244604e566d69a40115c9cb4e7db5
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 ?genderLabel ?occupationLabel ?countryLabel ?death {
?item wdt:P31 wd:Q5;
wdt:P21 ?gender;
wdt:P106 ?occupation;
wdt:P27 ?country;
wdt:P570 ?death .
VALUES ?country { wd:Q16 wd:Q39 wd:Q31 } .
FILTER( YEAR( ?death ) = 1967 ) .
OPTIONAL { ?item wdt:P27 ?country } .
FILTER( BOUND( ?country ) ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" } .
} ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?country")
v3("?death"):::projected
v5("?gender")
v4("?item"):::projected
v1("?itemLabel"):::projected
v6("?occupation")
c9(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c11(["fr,en"]):::literal
f0[["bound(?country)"]]
f0 --> v7
f1[["year-from-dateTime(?death) = '1967^^xsd:integer'"]]
f1 --> v3
v4 --"wdt:P31"--> c3
v4 --"wdt:P21"--> v5
v4 --"wdt:P106"--> v6
v4 --"wdt:P27"--> v7
v4 --"wdt:P570"--> v3
bind2[/VALUES ?country/]
bind2-->v7
bind20(["wd:Q16"])
bind20 --> bind2
bind21(["wd:Q39"])
bind21 --> bind2
bind22(["wd:Q31"])
bind22 --> bind2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P27".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end