query-677f96f1e78d684863f3cdcf51355f66
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 ?countryLabel ?place_birth ?place_death ?dod {
?item wdt:P31 wd:Q5;
wdt:P21 ?gender;
wdt:P570 ?dod .
FILTER( YEAR( ?dod ) = 1966 ) .
OPTIONAL { ?item wdt:P27 ?country } .
OPTIONAL { ?item wdt:P19 ?place_birth } .
OPTIONAL { ?item wdt:P20 ?place_death } .
FILTER( BOUND( ?country )|| BOUND( ?place_birth ) || BOUND( ?place_birth ) ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
} ORDER BY ?gender ?dod
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?country")
v2("?dod"):::projected
v1("?gender")
v5("?item"):::projected
v4("?place_birth"):::projected
v6("?place_death"):::projected
c10(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c12(["en"]):::literal
f0[["(bound(?country) || (bound(?place_birth) || bound(?place_birth)))"]]
f0 --> v3
f0 --> v4
f1[["year-from-dateTime(?dod) = '1966^^xsd:integer'"]]
f1 --> v2
v5 --"wdt:P31"--> c3
v5 --"wdt:P21"--> v1
v5 --"wdt:P570"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P27".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P19".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P20".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end