query-36e7d3f82020e0c03355c9b4d5c4e09a
This is what you can start with: is more important. So maybe something like this is more light: (P106)occupation , because (P20)place of death and (P19)place of birth , this is very good thank you. But wow, this is a heavy query. Maybe we can leave Matěj SuchánekThank you very much
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 wd:Q16;
wdt:P570 ?death .
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;
v2("?country")
v3("?death"):::projected
v5("?gender")
v4("?item"):::projected
v1("?itemLabel"):::projected
v6("?occupation")
c7(["wd:Q16"]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c12(["fr,en"]):::literal
f0[["bound(?country)"]]
f0 --> v2
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"--> c7
v4 --"wdt:P570"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P27".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end