query-c1d37e1eca1980f14d0110c65b8f3cb7
Map of places of birth of economists
Use at
- https://query.wikidata.org/sparql
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#>
#Map of places of birth of economists
#added before 2016-10
#defaultView:Map
SELECT ?person ?name ?coord ?place ?birthplace ?birthyear
WHERE
{
{?person wdt:P106 wd:Q188094 .} UNION {?person wd:P101 wd:Q8134.}. MINUS {?person wdt:P106 wd:Q188094. ?person wd:P101 wd:Q8134.}
?person wdt:P19 ?place .
?place wdt:P625 ?coord .
OPTIONAL { ?person wdt:P569 ?dob .}.
BIND(YEAR(?dob) as ?birthyear).
?person rdfs:label ?name filter (lang(?name) = "en")
?place rdfs:label ?birthplace filter (lang(?birthplace) = "en")
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?birthplace"):::projected
v7("?birthyear"):::projected
v5("?coord"):::projected
v6("?dob")
v2("?name"):::projected
v3("?person"):::projected
v4("?place"):::projected
c5(["wd:Q8134"]):::iri
c3(["wd:Q188094"]):::iri
f0[["?birthplace = 'en'"]]
f0 --> v1
f1[["?name = 'en'"]]
f1 --> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"wd:P101"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P106"--> c3
end
union0r <== or ==> union0l
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P106"--> c3
v3 --"wd:P101"--> c5
end
v3 --"wdt:P19"--> v4
v4 --"wdt:P625"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P569".-> v6
end
bind3[/"year-from-dateTime(?dob)"/]
v6 --o bind3
bind3 --as--o v7
v3 --"rdfs:label"--> v2
v4 --"rdfs:label"--> v1