query-05769892e334ee21de8aca9773f10fa1
Italian comunes where no humans are born or died SELECT ?comune ?comuneLabel WHERE { ?comune wdt:P31 wd:Q747074. MINUS { ?person wdt:P31 wd:Q5. ?person (wdt:P19 | wdt:P20 ) / wdt:P131* ?comune. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". } }
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#>
# Italian comunes where no humans are born or died
SELECT ?comune ?comuneLabel
WHERE
{
?comune wdt:P31 wd:Q747074.
MINUS
{
?person wdt:P31 wd:Q5.
?person (wdt:P19 | wdt:P20 ) / wdt:P131* ?comune.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?comune"):::projected
v2("?person")
a1((" "))
c8(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,it"]):::literal
c2(["wd:Q747074"]):::iri
v1 --"wdt:P31"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> c3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P20"--> a1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P19"--> a1
end
union0r <== or ==> union0l
end
a1 --"wdt:P131"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end