query-d9abb583ff899985f6531805f40c7242
Scienziati nati a Milano privi di data di nascita e morte
SELECT ?person ?personLabel
(GROUP_CONCAT(DISTINCT ?occupationLab ; SEPARATOR=", ") AS ?occupations)
WHERE {
?person wdt:P31 wd:Q5 .
?person wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLab . FILTER(LANG(?occupationLab) = "it")
?person wdt:P106/wdt:P279* wd:Q901 .
?person wdt:P19 wd:Q490 .
MINUS { ?person wdt:P569 ?datan } .
MINUS { ?person wdt:P570 ?datam } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
GROUP BY ?person ?personLabel
ORDER BY ?person ?personLabel
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Scienziati nati a Milano privi di data di nascita e morte
SELECT ?person ?personLabel
(GROUP_CONCAT(DISTINCT ?occupationLab ; SEPARATOR=", ") AS ?occupations)
WHERE {
?person wdt:P31 wd:Q5 .
?person wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLab . FILTER(LANG(?occupationLab) = "it")
?person wdt:P106/wdt:P279* wd:Q901 .
?person wdt:P19 wd:Q490 .
MINUS { ?person wdt:P569 ?datan } .
MINUS { ?person wdt:P570 ?datam } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
GROUP BY ?person ?personLabel
ORDER BY ?person ?personLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?datam")
v5("?datan")
v4("?occupation")
v3("?occupationLab"):::projected
v7("?occupations")
v1("?person"):::projected
v2("?personLabel"):::projected
a1((" "))
c15(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal
c13(["bd:serviceParam"]):::iri
c7(["wd:Q901"]):::iri
c3(["wd:Q5"]):::iri
c9(["wd:Q490"]):::iri
f0[["?occupationLab = 'it'"]]
f0 --> v3
v1 --"wdt:P31"--> c3
v1 --"wdt:P106"--> v4
v4 --"rdfs:label"--> v3
v1 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c7
v1 --"wdt:P19"--> c9
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P569"--> v5
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P570"--> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end
bind4[/"?occupationLab"/]
v3 --o bind4
bind4 --as--o v7