query-feb8c9af6d7debe169c90b86330beb47
Place of birth of Nobel prize winners
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#>
#defaultView:Map
SELECT distinct ?person ?personLabel ?image ?layer ?location
WHERE
{
?person wdt:P166 ?prize .
?person wdt:P19 ?placeOfBirth .
?placeOfBirth wdt:P625 ?location
OPTIONAL { ?person wdt:P18 ?image }
FILTER ( ?prize IN (wd:Q37922, wd:Q38104, wd:Q44585, wd:Q80061, wd:Q35637))
?prize rdfs:label ?prizeLabel filter (lang(?prizeLabel) = "en")
BIND ( ?prizeLabel AS ?layer )
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?image"):::projected
v7("?layer"):::projected
v5("?location"):::projected
v3("?person"):::projected
v4("?placeOfBirth")
v2("?prize")
v1("?prizeLabel")
c1(["en"]):::literal
c13(["bd:serviceParam"]):::iri
f0[["?prizeLabel = 'en'"]]
f0 --> v1
list0c2(["wd:Q38104"]):::iri
list0c4(["wd:Q80061"]):::iri
list0c3(["wd:Q44585"]):::iri
list0c5(["wd:Q35637"]):::iri
list0c1(["wd:Q37922"]):::iri
list0c1 --o f1
list0c2 --o f1
list0c3 --o f1
list0c4 --o f1
list0c5 --o f1
f1[[" in "]]
f1 --> v2
v3 --"wdt:P166"--> v2
v3 --"wdt:P19"--> v4
v4 --"wdt:P625"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v6
end
v2 --"rdfs:label"--> v1
bind2[/"?prizeLabel"/]
v1 --o bind2
bind2 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c1
end