query-53d0d9f5e6a57945db99b7c0491d199d
personnes mortes à Grenoble sauf celles enterrées au Cimetière Saint-Roch SELECT DISTINCT ?item ?itemLabel ?nomLabel ?anneeMort WHERE { ?item wdt:P31 wd:Q5. ?item wdt:P20 wd:Q1289.
MINUS { ?item wdt:P119 wd:Q2972477. }
OPTIONAL {?item wdt:P570 ?dateMort.} BIND(YEAR(?dateMort) AS ?anneeMort).
OPTIONAL {?item wdt:P734 ?nom.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". } } ORDER BY ?itemLabel
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#>
#personnes mortes à Grenoble sauf celles enterrées au Cimetière Saint-Roch
SELECT DISTINCT ?item ?itemLabel ?nomLabel ?anneeMort WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P20 wd:Q1289.
MINUS { ?item wdt:P119 wd:Q2972477. }
OPTIONAL {?item wdt:P570 ?dateMort.}
BIND(YEAR(?dateMort) AS ?anneeMort).
OPTIONAL {?item wdt:P734 ?nom.}
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;
v4("?anneeMort"):::projected
v3("?dateMort")
v2("?item"):::projected
v1("?itemLabel"):::projected
v5("?nom")
c10(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c6(["wd:Q2972477"]):::iri
c12(["fr,en"]):::literal
c4(["wd:Q1289"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P20"--> c4
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P119"--> c6
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v3
end
bind1[/"year-from-dateTime(?dateMort)"/]
v3 --o bind1
bind1 --as--o v4
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P734".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end